Skip to content

Add variance to spatiallySampledMetrics#454

Merged
Gerenjie merged 1 commit intomainfrom
tickets/DM-54624
Apr 13, 2026
Merged

Add variance to spatiallySampledMetrics#454
Gerenjie merged 1 commit intomainfrom
tickets/DM-54624

Conversation

@Gerenjie
Copy link
Copy Markdown
Contributor

No description provided.

@Gerenjie Gerenjie requested a review from isullivan April 11, 2026 22:12
Copy link
Copy Markdown
Contributor

@isullivan isullivan left a comment

Choose a reason for hiding this comment

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

Looks good, just one question.

psfMatchingKernel=psfMatchingKernel)

return pipeBase.Struct(spatiallySampledMetrics=spatiallySampledMetrics.asAstropy())
spatiallySampledMetrics = spatiallySampledMetrics.copy(deep=True).asAstropy()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is the additional copy necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Without the copy, it fails with a "memory is not contiguous" error on the .asAstropy() when # sources is not 100.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Aha! So this is the part that fixes that bug. Thanks!

@Gerenjie Gerenjie merged commit 85f13b0 into main Apr 13, 2026
3 checks passed
@Gerenjie Gerenjie deleted the tickets/DM-54624 branch April 13, 2026 20:00
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.

2 participants