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-26595: Have cp_pipe/ptc.py continue if there is a bad flat pair #49

Merged
merged 2 commits into from Sep 3, 2020

Conversation

plazas
Copy link
Contributor

@plazas plazas commented Sep 3, 2020

No description provided.

@plazas plazas requested a review from czwa September 3, 2020 18:41
Copy link
Contributor

@czwa czwa left a comment

Choose a reason for hiding this comment

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

It looks like it should solve the problem.

dataRef.dataId['expId'] = v2
exp2 = dataRef.get("postISRCCD", immediate=True)
except RuntimeError:
self.log.warn(f"postISR exposure for either visit {v1} or visit {v2} could not be retreived. "
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably not use "visit" anymore, as these should all be expId values now. There are a lot of them already in place, but we should at least not add any more.

except RuntimeError:
self.log.warn(f"postISR exposure for either visit {v1} or visit {v2} could not be retreived. "
"Ignoring flat pair.")
continue
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this pair show up as masked on ~L303? I'm trying to think if there are downstream issues due to dropping this pair.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The skipped pair does not show up in the return of {{getVisitsUsed}} (as this function only returns those pairs that were used), so that means that it does show up as masked. Also, as you point out in Jira, the example in there runs.

@plazas plazas merged commit 4dc13f4 into master Sep 3, 2020
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