-
Notifications
You must be signed in to change notification settings - Fork 11
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
Meanbodywt causing error within run_SSMSE_iter #171
Comments
Here's where this error is in the codebase: Lines 558 to 561 in d1e7714
It means this part of the code is throwing an error: Lines 511 to 519 in d1e7714
I think what's happening is there is no "Std_in" column, and it needs to be specified. Could that column be created? These are the column names that should exist for mean size at age data in the sample_struct: Lines 20 to 21 in d1e7714
|
I renamed the meanbodywt data in sample_struct but am now receiving a different error within the run_SSMSE_iter function, specifically within the get_full_sample_struct function: Section of code: Error in (function (x, x_name, dat) : |
@skylersagarese-NOAA , I'm so sorry, I lead you astray with the wrong names! These are actually the correct column names to be using: Lines 36 to 37 in d1e7714
|
I was actually using those headers in my sample_struct object (below). sample_struct$meanbodywt I am not having any luck trying to identify where this is tripping up in get_full_sample_struct. I assume there is a naming issue somewhere, but am struggling to find it. |
Ok, do you think you could email me the code you ran so I can try to replicate it on my end? |
Just shared a google drive folder with you (because of confidentiality issues in our data file)... |
Got it - I'll try to replicate by tomorrow! |
@skylersagarese-NOAA my code was erroring at a different part: Line 525 in f594bb1
Ironically, there was a mistake in the error checking function that suggest that the "Std_in" column should be "SE" (it shouldn't). I made a change in commit 14e3f09 (pushed to the @skylersagarese-NOAA could you test and see if that fix also works for you? If not, I'll have to sort out what I'm doing different from you. |
@k-doering-NOAA - that fix worked for me too! Thank you! |
When I included meanbodywt data, I got the following error within the run_SSMSE_iter function:
Error in (function (x, x_name, dat) :
sample_struct could not be automatically expanded due to list elements meanbodywt, meanbodywt; colnames Std_in, Std_in
Section of code:
if (!is.null(sample_struct)) {
sample_struct <- SSMSE:::get_full_sample_struct(sample_struct = sample_struct,
OM_out_dir = OM_out_dir)
sample_struct <- SSMSE:::convert_to_r4ss_names(sample_struct)
sample_struct_hist <- SSMSE:::convert_to_r4ss_names(sample_struct_hist)
}
The text was updated successfully, but these errors were encountered: