Skip to content

negative year inputs for Bmark_years in forecast file not working #130

@iantaylor-NOAA

Description

@iantaylor-NOAA

Piera Carpi (IPHC) got in touch after noticing that the Bmark_years reported in Forecast-report.sso all showed 2020 when she expected 2017 and 2020 based on forecast.ss inputs of -3 and 0.

I don't follow the logic of how the negative values are converted, but it looks like this line added 8 months ago to deal with uninitialized variables (https://vlab.ncep.noaa.gov/redmine/issues/80131) may have messed things up somehow.

I replicated the error with a version of the Pacific Hake model and it showed a small impact on the forecast spawning biomass, which makes me think that our automatic testing system could have caught the bug. @k-doering-NOAA, out of curiosity, did we have the automatic testing of the ss_examples models in place at that time (if I'm right that this is when the bug was introduced), and if so, is there a way to check for whether this change was visible but too small for us to flag?

Metadata

Metadata

Labels

bugSomething isn't working; don't remove label after fixingforecastquickfew hours work

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions