Skip to content

DM-54928: Use unique mask planes for each frame#55

Merged
isullivan merged 1 commit into
mainfrom
tickets/DM-54928
May 20, 2026
Merged

DM-54928: Use unique mask planes for each frame#55
isullivan merged 1 commit into
mainfrom
tickets/DM-54928

Conversation

@isullivan

Copy link
Copy Markdown
Contributor

No description provided.

@gpdf gpdf requested review from gpdf and jaladh-singhal May 12, 2026 23:00

@jaladh-singhal jaladh-singhal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good - code is very readable.

My comments are just suggestions (not blockers) - it's ok to merge even without them.

Comment thread python/lsst/display/firefly/firefly.py Outdated
return firefly_client.__version__


def _scoped_mask_id(frame, plane_name):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can be moved inside DisplayImpl and defined as @staticmethod - to keep it encapsulated.

Comment thread python/lsst/display/firefly/firefly.py Outdated
Comment on lines +246 to +251
# Legacy entries may be bare plane names; treat them as belonging
# to the current frame to preserve the old behavior in that case.
if isinstance(entry, tuple):
f, name = entry
else:
f, name = frame, entry

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wonder if we really need to preserve the legacy behavior - any instance of this updated class will have _maskIds in tuple format. Did you encounter any case where they weren't?

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.

No, I can't think of any case where the old behavior would be desirable.

Comment thread python/lsst/display/firefly/firefly.py Outdated
Comment on lines +475 to +480
if isinstance(entry, tuple):
f, name = entry
if f == frame:
names.add(name)
else:
names.add(entry)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same for this fallback. It's not bad to have it it just might be dead code.

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.

I'll remove both.

@isullivan isullivan merged commit fd9077b into main May 20, 2026
4 checks passed
@isullivan isullivan deleted the tickets/DM-54928 branch May 20, 2026 23: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.

2 participants