martius-lab / cluster_utils

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

Rename read_params_from_cmdline and save_metrics_params #107

Closed luator closed 5 months ago

luator commented 5 months ago

Rename

as discussed in https://github.com/martius-lab/cluster_utils/pull/99#discussion_r1634365846

The purpose of the renaming is to better reflect when/why to call the functions instead of focusing too much on technical details, which are likely of less interest to the user.

The old names are kept as aliases but are marked as deprecated. Using them will trigger a FutureWarning.

BREAKING: I used this occasion to remove the following options from initialize_job/read_params_from_cmdline:

Let me know if you think this is a problem, then I'll undo that part. Generally, I'd like to remove the direct smart_settings options, so the cluster_utils API is not directly dependent on the configuration parser that is used. dynamic is still there, as I wasn't sure what it is doing. Are there use-cases where one would want to set it to False, or could I remove that as well?

Do not merge before