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

Ignored config parameters #51

Merged
merged 4 commits into from
Apr 28, 2023

Conversation

bhilbert4
Copy link
Collaborator

Resolves #50

Tweaks to the logic used for overriding parameter values from various sources. Previously the values from the command line (including defaults for entries not explicitly added by the user) were overriding values from the config file if they were not None or an empty list. This meant that any parameter with a default that wasn't None or an empty list was overriding the value from the config file. With this change, values from the command line override existing values only if the value from the command line is not equal to the default values (as defined in constants.py).

The one case where this may be a problem is if a user has a config file where a parameter has a non-default value, and then they try to set it back to a default value on the command line. This seems like a low-probability situation though.

@bhilbert4 bhilbert4 self-assigned this Apr 26, 2023
@bhilbert4
Copy link
Collaborator Author

Should probably do a few more tests here before considering this ready to go. Initial tests all looked good though.

@bhilbert4 bhilbert4 merged commit ddccc47 into spacetelescope:main Apr 28, 2023
@bhilbert4 bhilbert4 deleted the ignored-config-parameters branch April 28, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search only returns results for NIRCam
1 participant