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

DM-23699: Update fgcmcal default config format #258

Merged
merged 2 commits into from Mar 10, 2020
Merged

Conversation

erykoff
Copy link
Contributor

@erykoff erykoff commented Mar 4, 2020

The fgcmcal default config format has been updated to remove many possibilities for index errors.

config.requiredFlag = (0, 0, 0, 0, 0, 0, 0, 0)
config.bands = ('N387', 'g', 'r', 'i', 'N816', 'z', 'N921', 'y', 'N1010')
config.fitBands = ['N387', 'g', 'r', 'i', 'N816', 'z', 'N921', 'y', 'N1010']
config.requiredBands = []
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that config overrides that are the default are discouraged.

config.fitFlag = (1, 1, 1, 1, 1, 1, 1, 1)
config.requiredFlag = (0, 0, 0, 0, 0, 0, 0, 0)
config.bands = ('N387', 'g', 'r', 'i', 'N816', 'z', 'N921', 'y', 'N1010')
config.fitBands = ['N387', 'g', 'r', 'i', 'N816', 'z', 'N921', 'y', 'N1010']
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the philosophy for tuple vs. list for ListFields?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've seen both, and I am pretty sure it doesn't matter...

List configs that depended on band order have been deprecated in favor of dict
mappings which are less susceptible to index errors.
@erykoff erykoff merged commit ef2c290 into master Mar 10, 2020
PaulPrice pushed a commit to HyperSuprime-Cam/obs_subaru that referenced this pull request Mar 11, 2020
DM-23699: Update fgcmcal default config format
@timj timj deleted the tickets/DM-23699 branch February 25, 2021 17:43
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.

None yet

2 participants