Skip to content

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

Open
wants to merge 5 commits into
base: Devel
Choose a base branch
from
Open

Changes to spinup, tune #31

wants to merge 5 commits into from

Conversation

hollorol
Copy link
Owner

No description provided.

Copy link
Owner Author

@hollorol hollorol left a 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

tryCatch(system(paste(executable, iniInput[1], "> /dev/null")),
error = function(e) stop("Cannot run the model - check the executable!")
)
return()
Copy link
Owner Author

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

return()
}

#On Windows machines
Copy link
Owner Author

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

Copy link
Owner Author

@hollorol hollorol left a 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) {
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants