-
Notifications
You must be signed in to change notification settings - Fork 5
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
Minor apparent bug in "error catch" for gmse_apply
#65
Comments
Thanks @jejoenje -- I'll take a look. I count the index |
Huh, I must have miscounted! Not sure what happened there... Sorry! Still not sure whats going on re. the error relating to As I said though, not a big issue at all, just thought I'd put it in here for reference. |
Odd. I'll take a look @jejoenje -- I wonder if the vector form of |
Ah, yeah, it probably is that actually. I note
I guess this is OK as long as such a parameter input mistake is actually caught at the error checking stage... Not sure what would happen if not - more than likely just a crash, but I can imagine there may be a (perhaps exceptional) case where everyhing is passed and |
It might be good to write a function that just checks all relevant inputs to make sure that they are scalars? At least, we might want to check the obvious ones that should be TRUE/FALSE for the user and raise a flag if they're trying to insert something with the wrong structure. I'll add it to the TODO list for v0.7. |
Sounds good @bradduthie. I will definitely help with the TODO list (sorry for being rubbish so far!). |
Cheers! I guess a named vector/list switch would depend on how much would need to be refactored and changed, and how it might affect the backwards compatibility. |
I think I have this one fixed (or, at least, giving an appropriate error message). I'll tag this and then close it when I push the commit. |
Very minor apparent bug which does not seem to be affecting anything much, but points erroneous error specification in
manage_target
toscaring
, while the latter is specified correctly.Haven't had time to investigate specifically but the reference to
input_list[41]
which should produce the error message, by my count relates tomanage_target
ininput_list
.Example code to reproduce the "issue" below:
The text was updated successfully, but these errors were encountered: