Skip to content

Conversation

@psavery
Copy link
Collaborator

@psavery psavery commented Sep 4, 2025

The polar masks need to be regenerated when the detectors are transformed. This adds functionality that does so.

The polar masks need to be regenerated when the detectors are transformed.
This adds functionality that does so.

Signed-off-by: Patrick Avery <[email protected]>
def invalidate_detector_masks(self, det_keys: list[str]):
for mask in self.masks.values():
if any(v[0] in det_keys for v in mask.data):
mask.invalidate_masked_arrays()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@bnmajor can you verify this function looks good?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Awesome, looks great to me!

@psavery psavery requested a review from saransh13 September 4, 2025 12:52
Copy link
Collaborator

@bnmajor bnmajor left a comment

Choose a reason for hiding this comment

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

LGTM!

@psavery psavery merged commit c626d32 into master Sep 4, 2025
6 checks passed
@psavery psavery deleted the det-transform-invalidate-polar-masks branch September 4, 2025 13:57
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.

3 participants