Skip to content
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

Move calibration running away from using templates #147

Open
arbennett opened this issue May 27, 2021 · 0 comments
Open

Move calibration running away from using templates #147

arbennett opened this issue May 27, 2021 · 0 comments

Comments

@arbennett
Copy link
Member

The current Ostrich objects rely on some hard coded templates for the run script. I think we could be quite a bit smarter about this. A vague outline would be that we implement a method, Ostrich.run_script which gets written out when Ostrich.write_config() is called. I think we can accomplish this with the inspect module. We will still require some small template that would look like:

$runScript

if __name__ == '__main__':
    $runScriptName($runScriptArgs)

This would allow users to specify much more complex functionality, such as allowing for integration with mizuRoute to do distributed basin routing, use transfer functions to map to parameter values (See #146), or even modify model structure during calibration.

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

No branches or pull requests

1 participant