update SS3 tests
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- R
- Estrellas
- 20
- Forks
- 10
- Merge medio
- 3 d 9 h
- PR fusionados (30 d)
- 21
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nmfs-ost/stockplotr
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
nmfs-ost/stockplotr#445 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
[bug] plot_spawning_potential_ratio() example throwing errorPosiblemente ocupada @JZahner1 la tomó hace 1 día. Abierto
nmfs-ost/stockplotr#444 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Release Checklist - Monthly UpdatePosiblemente ocupada @Schiano-NOAA la tomó hace 1 día. Abierto
nmfs-ost/stockplotr#442 · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
Brainstorm ways to automatically update `save_all_plots()`Posiblemente ocupada @sbreitbart-NOAA la tomó hace 8 días. Abierto
nmfs-ost/stockplotr#432 · 4 comentarios · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
nmfs-ost/stockplotr#422 ·
Los mantenedores suelen responder en 1 día
Todos los issues de nmfs-ost/stockplotr
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rfordatascience/tidytuesday#1098 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
microsoft/ML-For-Beginners#1056 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
atomashevic/transforEmotion#46 ·
Los mantenedores suelen responder en 1 día
-
`pk.calc.time_above()` with lin-up/log-down silently drops segments that end at a negative valueAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día