Skip to content

Commit

Permalink
Don't use strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Nov 10, 2023
1 parent 17dc93d commit 7597771
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/panoptes/pocs/mount/ioptron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 == '-':
Expand Down

0 comments on commit 7597771

Please sign in to comment.