brickbots / PiFinder

A plate solving telescope finder based around a Raspberry PI and RPI HQ Camera
Creative Commons Zero v1.0 Universal
145 stars 27 forks source link

Scroll bug in Messier catalog #160

Closed mrosseel closed 3 months ago

mrosseel commented 3 months ago

dominico6525: May have stumbled upon a really minor bug, but I can’t seem to scroll past M51 or M76 in the Messier catalog using the DN key (increasing M#). Seems to be the only two objects in the catalog that have this issue - easy to work around, but figured I’d share just in case.

mrosseel commented 3 months ago

The issue is that there are 2 objects with catalog 'M' and sequence '51', with the second one being the second galaxy of M51. Sequences should be unique so this shouldn't happen.

CompositeObject(id=13276, object_id=8870, obj_type='Gx', ra=202.475, dec=47.2, const='CVn', size='  11.0', mag=8.4, catalog_code='M', sequence=51, description='!!!, great spiral neb M51', names=[], image_name='NGC5194', logged=False), 
CompositeObject(id=13277, object_id=8875, obj_type='Gx', ra=202.5, dec=47.266666666666666, const='CVn', size='   5.4', mag=9.6, catalog_code='M', sequence=51, description='B, pS, lE, vgbM, inv in M51', names=[], image_name='NGC5195', logged=False),