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-28457: In cpCombine.py, the config option "combine" should be a string, not the integer stats value #73

Merged
merged 1 commit into from Jan 29, 2021

Conversation

czwa
Copy link
Contributor

@czwa czwa commented Jan 27, 2021

Set the CalibCombineTask statistics properties by name.

@czwa czwa requested a review from plazas January 27, 2021 00:41
doc="Statistic to use for combination (from lsst.afw.math)",
dtype=str,
default='MEANCLIP',
doc="Statistic name to use for combination (from lsst.afw.math)",
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess the only option for the user to know the possible options is to look at Statistics.h, no?

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 think if this gets changed more than just to compare against eotest, then it probably should be made into a ChoiceField.

@@ -524,7 +524,7 @@ def fitPtc(self, dataset):
if dataset.ptcFitType:
ptcFitType = dataset.ptcFitType
else:
raise RuntimeError(f"ptcFitType is None of empty in PTC dataset.")
raise RuntimeError("ptcFitType is None of empty in PTC dataset.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing this type. Can you fix the other typo ("None or empty" instead of "None of empty") before you merge?

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 think this was resolved on another ticket. I fixed this on my branch to avoid a linter error, and it looks like someone else pushed first.

@czwa czwa merged commit d1f92d1 into master Jan 29, 2021
@czwa czwa deleted the tickets/DM-28457 branch January 29, 2021 20:17
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