Commit 26406f48 authored by Christian Schneider's avatar Christian Schneider
Browse files

Bugfix for .nc files. Until now, we worked directly on the .nc file. Now we...

Bugfix for .nc files. Until now, we worked directly on the .nc file. Now we use a copy of the file to work on. 
parent 3489d78d
......@@ -161,7 +161,7 @@ def load_datamodule(filename, upgrade=True):
tmp = data_grid([[0], [0], [[0]]])
# Save xarray DataArray
tmp.df = ds[list(ds.keys())[0]]
tmp.df = ds[list(ds.keys())[0]].copy()
# Set attributes of dm object
for key, value in eval(tmp.df.attrs['dm_metadata']).items():
......
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