Skip to content

Commit

Permalink
Remove the units before trying to set the time for the ioptron.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee authored Nov 9, 2023
1 parent 70741b1 commit 58a90fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panoptes/pocs/mount/ioptron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _setup_location_for_mount(self):
now = current_time() + gmt_offset * u.minute
if 'set_utc_time' in self.commands:
j2000 = Time(2000, format='jyear')
offset_time = (now - j2000).to(u.ms)
offset_time = (now - j2000).to(u.ms).value
self.query('set_utc_time', f'{offset_time:0>13.0f}')
else:
self.query('set_local_time', now.datetime.strftime("%H%M%S"))
Expand Down

0 comments on commit 58a90fd

Please sign in to comment.