gemini-hlsw / gem

prototype postgres back-end for ocs
Other
15 stars 5 forks source link

Fix HourAngle.fromDoubleHours #261

Closed swalker2m closed 6 years ago

swalker2m commented 6 years ago

This PR fixes a bug in HourAngle.fromDoubleHours. It also adds a toDoubleHours method. I could easily be convinced to place that in the test method itself though. I don't have a good enough feel for optics to know whether there should be a doubleHours optic but I didn't try to add one since I didn't see any others for approximate conversions like that one.