biohansel icon indicating copy to clipboard operation
biohansel copied to clipboard

Command-line arg variable name and SubtypingParams instance variable name synchronization

Open peterk87 opened this issue 5 years ago • 1 comments

Command-line arg variable names should be synchronized with the SubtypingParams so that they can be all checked for and assigned with a couple lines of code, e.g.:

for param_key in subtyping_params.__dict__.keys():
    if param_key in args.__dict__:
        subtyping_params.__dict__[param_key] = args.__dict__[param_key]

This would allow new user-adjustable params to be added with less boilerplate to ensure they are set appropriate and to easily reference where a particular command-line parameter is used.

Related to #61

peterk87 avatar Jan 23 '19 17:01 peterk87