martius-lab / cluster_utils

https://cluster-utils.readthedocs.io/stable/
Other
12 stars 0 forks source link

Split read_params_from_cmdline() for job and main script and use argparse #104

Closed luator closed 5 months ago

luator commented 6 months ago

BREAKING 1: read_params_from_cmdline(): The job script now expects named arguments instead of positional ones. This makes the optionality of server information and distinction between settings file vs dictionary string much easier to implement. This affects manual calls of the job script and may break non-python job scripts which operate on the arguments.

BREAKING 2: Support for custom hooks in read_params_from_cmdline() has been removed as it doesn't seem to be relevant here. I'm not sure, though, if this is okay or if some people depend on it in the job script. If in doubt, I'll add it back.

Closes #103

How I tested