-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISSUE #770 Fix: length 0 CompError #799
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #799 +/- ##
==========================================
- Coverage 62.66% 62.65% -0.02%
==========================================
Files 112 112
Lines 26002 26010 +8
==========================================
+ Hits 16295 16296 +1
- Misses 9707 9714 +7 ☔ View full report in Codecov by Sentry. |
I'm going to hold off on merging this until we can investigate the underlying issue further. However, @lisaailloud-NOAA, you could install Nathan's fix via |
@iantaylor-NOAA I agree on holding off, I already had lisa install my fork for now figuring that was the best alternative. It looks like the issue is that the SS_Output() is not producing all fleet/partition combinations so some fleets only have partition 0 which is throwing the error. If I get a chance to take a look before you I will let you know what I find. |
I looked into it a little further and the issue is that the Length_comp_error_controls section of the SS report file (below) does not contain all fleet/partition combinations which is what is assumed in the plotting code. Also, I'm not sure why SS is assigning the below partition values when the input comp data appears to be all set as partition 2. This issue may be happening in SS rather than r4ss?? Fleet partition mintailcomp addtocomp combM+F CompressBins CompError ParmSelect minsamplesize |
Aha, this helps. You are right that this is a change in SS3 where the Age_comp_error_controls table is only reporting rows for fleets with age comps rather than all fleets. The format of that table changed recently for models that use partition-specific weights but I hadn't noticed that it was different even if you don't have partition. Shouldn't be too hard to fix in r4ss. |
Adds a wrapper for length zero Comp Errors when creating figure legends. Bug is due to missmatch in partition value between database and datainfo dataframes. Further investigation into the cause and implications of this mismatch would be helpful.
11bb962
to
0bc320b
Compare
Adds a wrapper for length zero Comp Errors when creating figure legends. Bug is due to missmatch in partition value between database and datainfo dataframes. Further investigation into the cause and implications of this mismatch would be helpful.