cmd cli does not respect '-c' and '-m' cli arguments
When using the -c
and -m
cli arguments to specify a particular model parameter set or command config at runtime, a bug in pydarm copies the specified files to the report directory but doesn't use them because it can't find them.
LOG_LEVEL=DEBUG PYTHONPATH=~/repos/pydarm pydarm report -o 0315 --no-gds-filters --no-display -c pydarm_cmd_H1_test.yaml 20240315T032747Z
Results in the following output (note the warning messages in particular):
DEBUG | Namespace(time='20240315T032747Z', model='/ligo/groups/cal/H1/ifo/pydarm_H1.ini', config='pydarm_cmd_H1_test.yaml', outdir='0315', force=False, mcmc=None, epoch=set(), gds_filters=False, interactive=False, display=False, no_bb=False)
INFO | config file: pydarm_cmd_H1_test.yaml
INFO | model file: /ligo/groups/cal/H1/ifo/pydarm_H1.ini
DEBUG | loading measurement set from directory /ligo/groups/cal/H1/reports/20240315T032747Z...
DEBUG | config file: /ligo/groups/cal/H1/reports/20240315T032747Z/pydarm_cmd_H1.yaml
DEBUG | finding PCal measurements...
DEBUG | search dir: /ligo/groups/cal/H1/reports/20240315T032747Z
DEBUG | finding Sensing measurements...
DEBUG | finding closest PCal to Sensing...
DEBUG | finding Actuation/L1/EX measurements...
DEBUG | finding closest PCal to Actuation/L1/EX...
DEBUG | finding Actuation/L2/EX measurements...
DEBUG | finding closest PCal to Actuation/L2/EX...
DEBUG | finding Actuation/L3/EX measurements...
DEBUG | finding closest PCal to Actuation/L3/EX...
DEBUG | finding BroadBand measurements...
INFO | using alternate report path: 0315
INFO | generating report 0315...
DEBUG | report id: 20240315T032747Z
DEBUG | report path: 0315
DEBUG | exporting mset: <MeasurementSet 20240315T032747Z (valid on "2024-03-15 03:27:47+00:00")>
DEBUG | copying config: pydarm_cmd_H1_test.yaml
DEBUG | copying model: /ligo/groups/cal/H1/ifo/pydarm_H1.ini
DEBUG | config file: 0315/pydarm_cmd_H1.yaml
WARNING | 0315/pydarm_cmd_H1.yaml does not exist. Defaulting to /ligo/groups/cal/H1/ifo/pydarm_cmd_H1.yaml.
DEBUG | loading measurement set from directory 0315...
DEBUG | config file: 0315/pydarm_cmd_H1.yaml
WARNING | 0315/pydarm_cmd_H1.yaml does not exist. Defaulting to /ligo/groups/cal/H1/ifo/pydarm_cmd_H1.yaml.
DEBUG | finding PCal measurements...
DEBUG | search dir: 0315