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-41623: Enabled the plotting of patch boundaries in skyPlot.py #165

Merged
merged 1 commit into from Nov 21, 2023

Conversation

jrmullaney
Copy link
Contributor

No description provided.

@jrmullaney jrmullaney force-pushed the tickets/DM-41623 branch 2 times, most recently from b094022 to 158c78d Compare November 21, 2023 11:27
Comment on lines 217 to 221
if self.plotOutlines:
if sumStats is None and "patch" in data.keys():
sumStats = generateSummaryStats(data, kwargs["skymap"], plotInfo)
else:
sumStats = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't maintain the previous behaviour: if self.plotOutlines is False then the None doesn't get converted to an empty dict like it used to. I think you need to do something more like this:

if sumStats is None:
    if self.plotOutlines and "patch" in data.keys():
        sumStats = generateSummaryStats(data, kwargs["skymap"], plotInfo)
    else:
        sumStats = {}

Copy link
Contributor

Choose a reason for hiding this comment

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

(untested suggestion, but hopefully that makes sense and will more or less work)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. I've changed it to what you suggested, and tested it by running coaddQualityExtended.yaml both with plotOutlines=False and plotOutlines=True. Works as expected under both circumstances. Just about to push new version...

@jrmullaney jrmullaney merged commit 47032d2 into main Nov 21, 2023
8 checks passed
@jrmullaney jrmullaney deleted the tickets/DM-41623 branch November 21, 2023 19:48
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