Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

bieryAtFnal
Copy link
Contributor

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.

@bieryAtFnal bieryAtFnal added bug Something isn't working miscellaneous deliverable A change that is/will be part of a release but is not substantial enough to be a daq-deliverable labels Mar 27, 2024
Copy link
Contributor

@plasorak plasorak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@plasorak plasorak merged commit bdc73a6 into production/v4 Mar 27, 2024
1 check passed
@plasorak plasorak deleted the kbiery/run_type_default_fix branch March 27, 2024 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working miscellaneous deliverable A change that is/will be part of a release but is not substantial enough to be a daq-deliverable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants