From 7597771fa2f3e5180ebe50d4f0e2ca0758d5fd6d Mon Sep 17 00:00:00 2001 From: Wilfred Tyler Gee Date: Fri, 10 Nov 2023 12:20:04 -1000 Subject: [PATCH] Don't use strings. --- src/panoptes/pocs/mount/ioptron/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panoptes/pocs/mount/ioptron/base.py b/src/panoptes/pocs/mount/ioptron/base.py index eb97ff309..de73d0e0b 100644 --- a/src/panoptes/pocs/mount/ioptron/base.py +++ b/src/panoptes/pocs/mount/ioptron/base.py @@ -244,12 +244,12 @@ def _mount_coord_to_skycoord(self, mount_coords): if coords_match is not None: if self._ra_coords_units == 'millisecond': - ra = (coords_match.group('ra') * getattr(u, self._ra_coords_units)).to(u.hour).value + ra = (int(coords_match.group('ra')) * getattr(u, self._ra_coords_units)).to(u.hour).value ra = (ra * u.hourangle).to(u.degree) else: - ra = (coords_match.group('ra') * getattr(u, self._ra_coords_units)).to(u.deg) + ra = (int(coords_match.group('ra')) * getattr(u, self._ra_coords_units)).to(u.deg) - dec = (coords_match.group('dec') * getattr(u, self._dec_coords_units)).to(u.deg) + dec = (int(coords_match.group('dec')) * getattr(u, self._dec_coords_units)).to(u.deg) dec_sign = coords_match.group('dec_sign') if dec_sign == '-':