Skip to content
Snippets Groups Projects
Commit 5b1804cc authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

prevent shrinking masks to not delete reference to user masks

parent b650e51d
No related branches found
No related tags found
1 merge request!286Add mask to Info object
Pipeline #244211 failed with stages
in 2 minutes and 37 seconds
......@@ -84,6 +84,7 @@ def prepare(data, info, time_entries=1, force_copy=False, report_conversion=Fals
np.ma.array(
data=data.magnitude,
mask=info.mask,
shrink=False,
fill_value=info.fill_value,
),
data.units,
......@@ -99,6 +100,7 @@ def prepare(data, info, time_entries=1, force_copy=False, report_conversion=Fals
np.ma.array(
data=data,
mask=info.mask,
shrink=False,
fill_value=info.fill_value,
copy=force_copy,
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment