Skip to content

Commit 8a7f71a

Browse files
author
Chilipp
committed
Removed inplace argument
This has been removed in xarray
1 parent 97cd434 commit 8a7f71a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gwgen/evaluation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,8 @@ def ds(self):
458458
idx_name = full[next(v for v in self.names) + '_sim'].dims[-1]
459459
full = full.rename({idx_name: 'full_index'})
460460
for vref, vsim in self.all_variables:
461-
full.rename({vref: 'all_' + vref, vsim: 'all_' + vsim},
462-
inplace=True)
463-
ds.merge(full, inplace=True)
461+
full = full.rename({vref: 'all_' + vref, vsim: 'all_' + vsim})
462+
ds = ds.merge(full)
464463
for orig, attrs, (vref, vsim) in zip(
465464
self.names, self.names.values(), self.all_variables):
466465
for prefix in ['', 'all_']:

0 commit comments

Comments
 (0)