Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kd committed May 3, 2024
1 parent f2fef76 commit 8b84132
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sail_Instrument/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,12 @@ def mag_variation(self, lat, lon):
if time.monotonic() - self.variation_time > self.variation_period:
self.variation = self.variation_model.GeoMag(lat, lon).dec
self.variation_time = time.monotonic()
try:
self.variation
try: # issue #22
self.variation
except Exception as x:
self.variation = self.variation_model.GeoMag(lat, lon).dec
self.variation_time = time.monotonic()
self.variation = self.variation_model.GeoMag(lat, lon).dec
self.variation_time = time.monotonic()

return self.variation

def manual_wind(self):
Expand Down

0 comments on commit 8b84132

Please sign in to comment.