-
Notifications
You must be signed in to change notification settings - Fork 11
Changes to spinup, tune #31
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
base: Devel
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check the spinupmuso, some logic is changed
RBBGCMuso/R/spinupMuso.R
Outdated
tryCatch(system(paste(executable, iniInput[1], "> /dev/null")), | ||
error = function(e) stop("Cannot run the model - check the executable!") | ||
) | ||
return() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is too early, I want the script to continue
RBBGCMuso/R/spinupMuso.R
Outdated
return() | ||
} | ||
|
||
#On Windows machines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about using multiple ifs instead of ifelse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job 👍🏻 . Only one part needs to be checked
## If parameters given, use changemulline, else leave this steps | ||
|
||
if(!is.null(parameters)){ | ||
choose_parameters <- function(file_path, params) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the naming. Maybe the whole errorchecking here is not needed if changemulline does it already. Let's see
No description provided.