Skip to content

Commit

Permalink
More readability and consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Nov 10, 2023
1 parent e1d23a7 commit 03179d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/panoptes/pocs/mount/ioptron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,9 @@ def _mount_coord_to_skycoord(self, mount_coords):
self.logger.trace(f'Mount coordinates: {coords_match}')

if coords_match is not None:
ra = (coords_match.group('ra') * getattr(u, self._coords_unit)).to(u.deg)
dec = (coords_match.group('dec') * getattr(u, self._coords_unit)).to(u.deg)
coords_unit = getattr(u, self._coords_unit)
ra = (coords_match.group('ra') * coords_unit).to(u.deg)
dec = (coords_match.group('dec') * coords_unit).to(u.deg)

dec_sign = coords_match.group('dec_sign')
if dec_sign == '-':
Expand Down

0 comments on commit 03179d6

Please sign in to comment.