update SS3 tests
Maintainer thường phản hồi trong vòng 2 ngày
Một pull request liên quan đã được merge.
- #427 của @Schiano-NOAA — đã merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with tests/testthat/test-convert_output.R, tests/testthat/fixtures/prepare_ss3_output_files.R, and the models in tests/testthat/fixtures/ss3_models. Compare the current r4ss::SS_output() workflow with the existing fixtures and tests, then decide where current SS3 outputs should live and how they should be prepared. Done means the tests cover all fixture models and save_all_plots() on their outputs; an open linked pull request indicates work is already underway.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Inspired by a conversation with @kellijohnson-NOAA yesterday, I've been trying out stockplotr with some SS3 models.
The package is making fast progress but there are still areas where I'm getting errors, and I think improving the tests would be a good first step to sorting out the issues.
Here are a few ways that the tests could be improved:
convert_output()now uses the output fromr4ss::SS_output()buttest-convert_output.Ris still using the old method of parsingReport.ssoand not testing the full set of test models in/tests/testthat/fixtures/ss3_models,- the Report.sso files in that fixtures folder are from 2024 and are out of date,
- it would be good to integrate testing of the current
r4ss::SS_output()into the tests of either stockplotr or r4ss, and - it would be good to test
save_all_plots()on the output from the all of the SS3 test models, not just the example data.
The part that I'm not sure about is what should be dynamic and what files should be stored where. Here are a few options
- Run
r4ss::SS_output()in https://github.com/nmfs-ost/stockplotr/blob/main/tests/testthat/fixtures/prepare_ss3_output_files.R and save the resulting list as a .rds or .rda to use instead of Report.sso - Add more SS3 output files (like
CompReport.ssowhich contains all the composition data) tofixtures/ss3_modelsand run ther4ss::SS_output()as a step in the testing process - Add more SS3 output files to https://github.com/nmfs-ost/ss3-test-models instead of stockplotr and remove the files from
fixtures/ss3_models
The 3rd option has the benefit of reducing the size of the stockplotr repo as well as always relying on the current SS3 files and the current version of r4ss. Adding r4ss to the 'Suggests:' field within DESCRIPTION will make it available for the tests without requiring all users to install it and its dependencies. Let me know what you think and I'm happy to work on a pull request if that would be helpful.
- Ngôn ngữ chính
- R
- Star
- 20
- Fork
- 10
- Merge trung bình
- 3 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 23
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nmfs-ost/stockplotr
-
check `dat` argument (and others) at the start of save_all_plots()Có thể đã có người làm @Schiano-NOAA đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nmfs-ost/stockplotr#445 · 7 bình luận · 2 reaction · 2 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`table_biomass_abundance_catch` fails tests due to change in `example_data`Có thể đã có người làm @Schiano-NOAA đã nhận 1 ngày trước. Đang mởbug
nmfs-ost/stockplotr#449 · 1 bình luận · 2 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[bug] plot_spawning_potential_ratio() example throwing errorCó thể đã có người làm @JZahner1 đã nhận 3 ngày trước. Đang mở
nmfs-ost/stockplotr#444 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Release Checklist - Monthly UpdateCó thể đã có người làm @Schiano-NOAA đã nhận 3 ngày trước. Đang mở
nmfs-ost/stockplotr#442 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Brainstorm ways to automatically update `save_all_plots()`Có thể đã có người làm @sbreitbart-NOAA đã nhận 11 ngày trước. Đang mở
nmfs-ost/stockplotr#432 · 4 bình luận · 2 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của nmfs-ost/stockplotr
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tidymodels/censored#414 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
waldronlab/bugphyzz#256 ·
-
dbRemoveTable() fails on SQLite with 'near "TRUNCATE": syntax error' and leaves the table in placeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OHDSI/DatabaseConnector#348 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100