Skip to content

Move calibration running away from using templates #147

@arbennett

Description

@arbennett

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions