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-36571: Remove applyColorTerms=None option from PhotoCalTask and default to False #727

Merged
merged 3 commits into from Nov 2, 2022

Conversation

parejkoj
Copy link
Contributor

No description provided.

default=False,
doc=("Apply photometric color terms to reference stars?\n"
"True: always apply colorterms; fail if color term data is not available for the "
"specified reference catalog and filter.\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

This doc string line would be 120 characters long. Would it look nicer to maintain the indented look (indenting to match True: above) as before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This spawned a whole conversation in #dm-docs-support. The challenge is balancing the config.save output vs. the rendered HTML that goes in pipelines.lsst.io. I think I've found a good balance of those here.
https://lsstc.slack.com/archives/C2B6DQBAL/p1667327052273339

Copy link
Contributor

Choose a reason for hiding this comment

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

Had you previously removed the always in the True section here? If so, it looks like it has reappeared.

I still think it would read better if written as attempt to apply color terms; fail if.... If instead you simply write apply color terms; fail if..., that implies that you a) are applying color terms, but then b) are failing to apply color terms, because none are available. Logically, this doesn't make sense to me, hence the need for an admission of an attempt being made.

Follow up point: use of colorterms vs color terms. I think the former should be reserved for reference to the config parameter, whilst the latter reserved for discussion of "color terms". I think this sentence probably should make use of color terms (with a space), but happy to defer to you if you were instead meaning to refer to the config parameter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I think I see what you mean. I've taken that wording.

"False: do not apply."),
default=False,
doc=("Apply photometric color terms to reference stars?\n"
"True: always apply colorterms; fail if color term data is not available for the "
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps this would be clearer if written:

True: attempt to apply color terms; fail if color term data...

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 taken out the "always"; the "attempt" is implied by the failure description.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks - as mentioned in a reply above, I think your edit was undone by a subsequent edit. For the reasons elucidated above, I still prefer the use of attempt to here, but am happy to defer to your judgement on this.

@parejkoj parejkoj force-pushed the tickets/DM-36571 branch 2 times, most recently from 2a1ee48 to 014b2b0 Compare November 1, 2022 20:24
@parejkoj
Copy link
Contributor Author

parejkoj commented Nov 1, 2022

@leeskelvin : what do you think about this reworked version? I think the rendered HTML and config.save versions both look ok.

@leeskelvin
Copy link
Contributor

Thanks John, this is looking good. I left a comment on the new doc string format, but otherwise I think this looks good to me, cheers!

This option did not behave the way some expected, and could result in
colorterms not being applied when one was expecting them to be.
@parejkoj parejkoj merged commit 3008f20 into main Nov 2, 2022
@parejkoj parejkoj deleted the tickets/DM-36571 branch November 2, 2022 21:16
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