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-42666: Propagate MJD #298

Merged
merged 1 commit into from Jan 29, 2024
Merged

DM-42666: Propagate MJD #298

merged 1 commit into from Jan 29, 2024

Conversation

arunkannawadi
Copy link
Member

No description provided.

@@ -215,11 +215,13 @@ def run(self, inputExp, ptc=None, overscanResults=None, **kwargs):
if self.config.doCopyCalibDistributionStatistics:
calibDistributionResults = self.copyCalibDistributionStatistics(inputExp, **kwargs)

mjd = inputExp.getMetadata().get("MJD", None)
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not entirely sure if I can expect MJD to always exist. If not, can the code downstream handle None?

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like None is cast to 0 by matplotlib, so that's probably safe.

@@ -215,11 +215,13 @@ def run(self, inputExp, ptc=None, overscanResults=None, **kwargs):
if self.config.doCopyCalibDistributionStatistics:
calibDistributionResults = self.copyCalibDistributionStatistics(inputExp, **kwargs)

mjd = inputExp.getMetadata().get("MJD", None)
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like None is cast to 0 by matplotlib, so that's probably safe.

@arunkannawadi arunkannawadi force-pushed the tickets/DM-42666 branch 2 times, most recently from 0adf3de to 1595419 Compare January 29, 2024 16:19
@arunkannawadi arunkannawadi merged commit ad86943 into main Jan 29, 2024
2 checks passed
@arunkannawadi arunkannawadi deleted the tickets/DM-42666 branch January 29, 2024 16:31
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