update SS3 tests
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- R
- スター
- 20
- フォーク
- 10
- 平均マージ
- 3日 9時間
- マージ済み PR(30日)
- 21
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nmfs-ost/stockplotr のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nmfs-ost/stockplotr#445 · コメント 5 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[bug] plot_spawning_potential_ratio() example throwing error対応中かも @JZahner1 が 1 日前に担当しました。 オープン
nmfs-ost/stockplotr#444 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Release Checklist - Monthly Update対応中かも @Schiano-NOAA が 1 日前に担当しました。 オープン
nmfs-ost/stockplotr#442 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
Brainstorm ways to automatically update `save_all_plots()`対応中かも @sbreitbart-NOAA が 9 日前に担当しました。 オープン
nmfs-ost/stockplotr#432 · コメント 4 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
nmfs-ost/stockplotr#422 ·
メンテナーはふだん 1 日以内に返信
nmfs-ost/stockplotr の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
OHDSI/PatientLevelPrediction#688 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rfordatascience/tidytuesday#1098 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
microsoft/ML-For-Beginners#1056 ·