Planet names - replace generic planet identifiers PL 1 and PL 2 with meaningful planet names …#390
Planet names - replace generic planet identifiers PL 1 and PL 2 with meaningful planet names …#390Git4me2day wants to merge 1 commit intobrickbots:mainfrom
Conversation
…in both the object list and the details/navigation screen
|
Please hold on processing this PR, I may have found an issue. I’ll update with more details once I have finished my analysis. |
|
Everything looks good, I was just dealing with some low RaspPi power throttling issues which have been resolved. Go ahead and continue with the PR process. |
|
I didn't have any errors in test mode but during my under the sky testing I'm getting this error: $ sudo systemctl status pifinder Mar 04 20:05:34 pifinder python[1069]: File "/home/pifinder/PiFinder/python/PiFinder/ui/object_details.py", line 108, in init This was not my code causing the issue, I just stumbled on to it as I had added some eyepieces with "None" in the "Field Stop" Field. I'll be checking if this has been reported and make a Bug report accordingly. So far my under sky testing is going very well. |
|
hi, Thx for your efforts, the PR as it is is fine - although I had something a bit more in mind for this change. Nothing wrong with merging this and improving later of course. My idea was that for each object, we indicate if it's catalog name leading or display name leading, so we can fix this for all catalogs. |
|
@Git4me2day Let us know if you want to merge this as is, or if you want to tackle the more general case of marking either individual objects, or whole catalogs, as 'Display Name Leading'. If you want to tackle the broader issue for any catalog, let me know and I can write a quick specification and provide some pointers on where you may want to think about making changes. If not, we can get this merged so people can get some planet name love ASAP. |
I’m very interested in looking at and making the more global Name leading updates. I’m headed for the Staunton River Star Party on the 16th and will be back home on the 22nd but when I get back, I can dive back in to the code. So you’ll have a bit of time to write up the specifications and other information. |
Planet Display Changes
Summary
Two code changes across two files to replace generic planet identifiers
(
PL1,PL2) with meaningful planet names in both the object list andthe details/navigation screen.
Change 1 — Object List: Abbreviated Planet Name as Row Label
File:
python/PiFinder/ui/object_list.pyMethod:
create_shortname_textWhat it does
Replaces the generic
PL1,PL2row labels in the object list with3-letter planet abbreviations (e.g.
MER,VEN). All other catalogsare unaffected.
Before
After
Change 2 — Object Details Screen: Full Planet Name as Designator
File:
python/PiFinder/composite_object.pyProperty:
display_nameWhat it does
display_namedrives the header, title bar, and name deduplication on theObject Details screen. Overriding it here for planets fixes all of those in
one place — the screen now shows
Mercuryinstead ofPL 1.Before
After
Files Changed
python/PiFinder/ui/object_list.pycreate_shortname_textpython/PiFinder/composite_object.pydisplay_name