panoptes / POCS

An Observatory Control System for the PANOPTES citizen-science project designed to help find transiting exoplanets! :telescope: :stars:
https://pocs.readthedocs.io/en/latest/
MIT License
77 stars 49 forks source link

Ensure the location properties all have proper units. #1231

Closed wtgee closed 4 months ago

wtgee commented 4 months ago

Some of the code assumes the location properties will always have a unit. Specifically the latitude and longitude need to be units and having them only as strings causes problems.

This PR just does a simple check when creating the Location object to guarantee units are assigned.