Skip to content
Snippets Groups Projects

Fix unquantified masked arrays loosing mask in fm.data.prepare()

Merged Martin Lange requested to merge fix-lost-mask into main
4 files
+ 33
3
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 1
1
@@ -77,7 +77,7 @@ def prepare(data, info, time_entries=1, force_copy=False, report_conversion=Fals
# this covers masked arrays as well
if isinstance(data, np.ndarray):
if force_copy:
data = np.copy(data)
data = data.copy()
data = UNITS.Quantity(data, units)
else:
if force_copy:
Loading