We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If MODEL_SETTINGS_FILE is set to a path that doesn't exist, then the following line is set to model_settings_file = None
model_settings_file = None
OasisPlatform/src/model_execution_worker/tasks.py
Lines 303 to 305 in a585706
Lines 307 to 311 in a585706
Lines 346 to 348 in a585706
Which can override a valid model_settings_json path with None:
model_settings_json
In [1]: oasislmf_config = {'model_settings_json': "some-valid-path"} In [2]: task_params = {'model_settings_json': None} In [3]: run_params = {**oasislmf_config, **task_params} In [4]: run_params Out[4]: {'model_settings_json': None}
The text was updated successfully, but these errors were encountered:
sambles
Successfully merging a pull request may close this issue.
Issue Description
If MODEL_SETTINGS_FILE is set to a path that doesn't exist, then the following line is set to
model_settings_file = None
OasisPlatform/src/model_execution_worker/tasks.py
Lines 303 to 305 in a585706
OasisPlatform/src/model_execution_worker/tasks.py
Lines 307 to 311 in a585706
That value is then stored in a dict, which is later combined with the oasislmf.json contents.
OasisPlatform/src/model_execution_worker/tasks.py
Lines 346 to 348 in a585706
Which can override a valid
model_settings_json
path with None:The text was updated successfully, but these errors were encountered: