DUNE-DAQ / nanorc

2 stars 2 forks source link

bugfix: Added default value for --run-type click option in cli.py #258

Closed bieryAtFnal closed 3 months ago

bieryAtFnal commented 3 months ago

When running tests with the latest nanorc code on the production/v4 branch, I noticed complaints about failures in running the "lower" function on an empty object. I traced this to a lack of a default value in the --run-type option that I added to nanorc in cli.py recently. The code change in this PR fixes this bug.

Before the change, we can not start runs with nanorc without explicitly specifying the --run-type start/start_run parameter.

With this change, a default value of "TEST" is assigned to the run_type and subsequent operations such as "lower" now work.