Repository navigation
Conversation
#248 added the WDS catalog to Objects > By Catalog > Stars..., but not to Set Filters > Catalogs > Stars.... Users could browse WDS but could not select it in the catalog filter. Add the entry in the same position as in By Catalog. Add a smoke test that flattens both menus to (group, name, catalog code) and asserts they are equal, so a catalog added to one menu and not the other fails CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
You can open the WDS double star catalog from Objects > By Catalog > Stars..., but you cannot select it in Set Filters > Catalogs > Stars.... This PR adds WDS Doubles to the filter menu. It also adds a test that fails when the two menus do not list the same catalogs.
Cause
#248 added WDS to the By Catalog menu. It did not add WDS to the filter menu. Both menus are lists in
python/PiFinder/ui/menu_structure.pythat we update by hand, so it is easy to change one and forget the other.WDS is the only catalog that is missing. All other catalog codes are in both menus.
Changes
menu_structure.py: add WDS Doubles to Set Filters > Catalogs > Stars..., after RASC Doubles and before TLK 90 Variables. This is the same position as in By Catalog.test_menu_struct.py: add the smoke testtest_catalog_filter_matches_by_catalog_menu. The test makes a list of each catalog in each menu, with its group (for example "Stars..."), its name and its catalog code. The two lists must be the same, in the same order. The test finds the filter menu by itsfilter.selected_catalogsconfig option, not by its name.Not changed
default_config.jsondoes not select WDS by default. Users who want WDS in the filtered lists select it in the filter menu.Tests
At index 24 diff: (('Stars...',), 'TLK 90 Variables', 'TLK') != (('Stars...',), 'WDS Doubles', 'WDS').ruff check,ruff format --checkandnox -s type_hintspass.🤖 Generated with Claude Code