Skip to content

Commit

Permalink
Merge pull request #149 from mrosseel/rasc-double-stars
Browse files Browse the repository at this point in the history
Adjustments of description text, added glossary, fix menu bug
  • Loading branch information
brickbots authored Mar 4, 2024
2 parents 74fd45e + 051ca3e commit c062af8
Show file tree
Hide file tree
Showing 8 changed files with 11,125 additions and 387 deletions.
220 changes: 110 additions & 110 deletions astro_data/RASC_DoubleStars/rasc_double_stars.csv

Large diffs are not rendered by default.

10,802 changes: 10,762 additions & 40 deletions astro_data/RASC_DoubleStars/rasc_double_stars.ipynb

Large diffs are not rendered by default.

470 changes: 235 additions & 235 deletions astro_data/RASC_DoubleStars/rasc_double_stars_full.csv

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions astro_data/RASC_DoubleStars/rasc_ds.desc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,19 @@ The program can be started at any time and easily completed within 12 months.

It encourages intermediate visual observers to view a variety of doubles and multi-star systems.

Abbreviations:
Opt = Optical
Phy = Physical
? = Uncertain
Bin = Binary
Win = Winter
Spr = Spring
Sum = Summer
Aut = Autumn
Sep = recent Separation
PA = recent Position Angle
M = Magnitude

Note: only certain pairs (e.g. AB or AC) need to be observed to get the certificate.

More info on https://www.rasc.ca/double-stars
Binary file modified astro_data/pifinder_objects.db
Binary file not shown.
3 changes: 2 additions & 1 deletion python/PiFinder/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ def get_options_window(self):
# Ensure self.current_pos is within the bounds of the self.menu_items
# If all menu options fit within the visible window, no need to scroll
if len(self.menu_items) <= self.visible_count:
return self.menu_items, 0, len(self.menu_items)
return self.menu_items

# Highlighted item causes the window to move to include the item
self.start_index = self.current_pos
self.end_index = self.start_index + self.visible_count

# Return the slice of menu options to display, along with start and end indices

return self.menu_items[self.start_index : self.end_index]

def __str__(self):
Expand Down
1 change: 0 additions & 1 deletion python/PiFinder/ui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def update(self, force=False):
if "enum" in selected_item["type"]:
self.__menu.set_items(selected_item["options"])
options = self.__menu.get_options_window()
# print(self.__menu, selected_item)

# Show the options
for i, enum in enumerate(options):
Expand Down
1 change: 1 addition & 0 deletions python/tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python3 -m unittest discover -s tests

0 comments on commit c062af8

Please sign in to comment.