You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not fully sure but in phase.py , calling FlightPhase.phaselabel() raises a Numpy RuntimeWarning when the sliced array is empty.
class FlightPhase(object):
...
def phaselabel(self, twindow=60):
...
idxchk = idxs[mask]
altchk = self.alt[mask]
spdchk = self.spd[mask]
rocchk = self.roc[mask]
# mean value or extream value as range
alt = max(min(np.mean(altchk), self.alt_range[-1]), self.alt_range[0])
spd = max(min(np.mean(spdchk), self.spd_range[-1]), self.spd_range[0])
roc = max(min(np.mean(rocchk), self.roc_range[-1]), self.roc_range[0])
Either
a check is performed on the sliced array and an alternative value is set
or a numpy configuration allows for silencing the warning ?
Regards
The text was updated successfully, but these errors were encountered:
Not fully sure but in phase.py , calling FlightPhase.phaselabel() raises a Numpy RuntimeWarning when the sliced array is empty.
class FlightPhase(object):
...
def phaselabel(self, twindow=60):
...
Either
Regards
The text was updated successfully, but these errors were encountered: