-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
If you set the name of an experiment to a number. e.g.
esm_runscripts awicm3-ollie-TCO159L91-CORE2.yaml -e 1850 --open-run
The ID will be interpreted as an integer rather than a string, leading to the following error message:
Traceback (most recent call last):
File "/home/ollie/jstreffi/.local/bin/esm_runscripts", line 30, in <module>
sys.exit(load_entry_point('esm-runscripts', 'console_scripts', 'esm_runscripts')())
File "/home/ollie/jstreffi/esm_runscripts/esm_runscripts/cli.py", line 199, in main
Setup = SimulationSetup(command_line_config)
File "/home/ollie/jstreffi/esm_runscripts/esm_runscripts/sim_objects.py", line 42, in __init__
self.config = prepare.run_job(self.config)
File "/home/ollie/jstreffi/esm_runscripts/esm_runscripts/prepare.py", line 5, in run_job
helpers.evaluate(config, "prepare", "prepare_recipe")
File "/home/ollie/jstreffi/esm_runscripts/esm_runscripts/helpers.py", line 69, in evaluate
framework_recipe, framework_plugins, config
File "/home/ollie/jstreffi/.local/lib/python3.7/site-packages/esm_plugin_manager/esm_plugin_manager.py", line 130, in work_through_recipe
config = getattr(submodule, workitem)(config)
File "/home/ollie/jstreffi/esm_runscripts/esm_runscripts/prepare.py", line 648, in initialize_coupler
+ "/"
TypeError: can only concatenate str (not "int") to str
I would suggest that whatever follows the -e flag should always be interpreted as a string regardless of the actual characters involved.
This run was done on the latest version of develop 080d79d
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working