-
Notifications
You must be signed in to change notification settings - Fork 2
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
default value of comp_bins throws error in writeComps #153
Comments
@brianlangseth-NOAA, thanks for flagging this. I agree that the error from the defaults is bad and some change is needed. |
@iantaylor-NOAA I made the same comment that we probably shouldn't be automatically generating bins when not provided by the user when talking with @brianlangseth-NOAA about this issue. I am working on a code addition in |
@chantelwetzel-noaa, thanks for stepping up! I see that there's some code related to comp_bins = NULL in these lines: Lines 230 to 235 in bad3513
comp_bins .
FYI, the error if there's no default should look like
|
Describe the bug
When running writeComps, the default value for comp_bins (which is NULL) results in an error, which happens in lines 215-218 of the code with the error
Error in UseMethod("full_seq") :
no applicable method for 'full_seq' applied to an object of class "NULL"
To Reproduce
Steps to reproduce the behavior:
Run comp calculation up to getComps, then
Expected behavior
I expect the defaults to run. When I use comp_bins = seq(12,66,2), the code works.
Additional context
I suggest that when no comp_bins are provided then have the code automatically set it to some range based on the data. Alternatively remove the default and just prompt the user that they need to enter something.
Altogether the issue is resolveable, just needs to be communicated better.
The text was updated successfully, but these errors were encountered: