Skip to content
Snippets Groups Projects

Resolve TMSS-2829

Merged Jorrit Schaap requested to merge TMSS-2829 into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -421,7 +421,7 @@ def coordinates_timestamp_and_station_to_target_rise_and_set(pointing: Pointing,
"always_above_horizon": False,
"always_below_horizon": False}
except (TypeError, ValueError) as e:
if "numpy.float64" in str(e) or "could not broadcast input array" in str(e):
if "numpy.float64" in str(e) or "could not broadcast input array" in str(e) or "Cannot cast array data from dtype" in str(e):
# Note: when the target is always above or below horizon, astroplan excepts with the not very
# meaningful error: 'numpy.float64' object does not support item assignment
# Determine whether the target is always above or below horizon so that we can return some useful
Loading