Commit d75715d4 authored by Médéric Boquien's avatar Médéric Boquien

When a band is invalid, also set the error to NaN.

parent 03375155
......@@ -142,6 +142,7 @@ class ObservationsManagerPassbands(object):
w = np.where((self.table[band] < threshold) |
(self.table[banderr] < threshold))
self.table[band][w] = np.nan
self.table[banderr][w] = np.nan
if upperlimits is False:
w = np.where(self.table[banderr] <= 0.)
self.table[band][w] = np.nan
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment