Skip to content

Conversation

@wtgee
Copy link
Member

@wtgee wtgee commented Nov 25, 2025

  • AutoGuiderStarMask changed to SourceCatalogFlags.
  • SourceDetectionFlag changed to SourceDetectionFlags (singular to plural).
  • Add deprecation warning and auto-import for above.
  • Added SourceMatchingFlags.
  • Added SourceDetectionFlags.BAD_SIZE.
  • Updated docstrings.
  • Added bitmask of zero entries for the enums.
  • Added better __str__ functions for the enums.

@wtgee wtgee requested a review from Copilot November 25, 2025 22:21
@wtgee wtgee marked this pull request as draft November 25, 2025 22:21
Copilot finished reviewing on behalf of wtgee November 25, 2025 22:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors and enhances autoguider flag enums by renaming existing classes, adding a new matching flags enum, and improving documentation. The changes support the INSTRM-2799 ticket by modernizing the flag naming conventions to better reflect their purpose.

Key Changes:

  • Renamed AutoGuiderStarMaskSourceCatalogFlags and SourceDetectionFlagSourceDetectionFlags (plural) with deprecation warnings
  • Added new SourceMatchingFlags enum for catalog matching states
  • Enhanced all enums with zero-value entries, composite flag constants, and custom __str__ methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wtgee wtgee force-pushed the tickets/INSTRM-2799 branch from d8904fc to 8a3fa48 Compare November 25, 2025 22:29
* `AutoGuiderStarMask` changed to `SourceCatalogFlags`.
* `SourceDetectionFlag` changed to `SourceDetectionFlags` (singular to plural).
* Add deprecation warning for above.
* Added `SourceMatchingFlags`.
* Added `SourceDetectionFlags.BAD_SIZE`.
* Updated docstrings.
* Added bitmask of zero entries for the enums.
* Added better `__str__` functions for the enums.
@wtgee wtgee force-pushed the tickets/INSTRM-2799 branch from 8a3fa48 to cb97f06 Compare November 26, 2025 02: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