Skip to content
Snippets Groups Projects

Make transferFlags a multivariate function

Merged David Schäfer requested to merge multi-transfer into develop
All threads resolved!
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
+ 5
1
@@ -376,7 +376,11 @@ class FlagtoolsMixin:
if target not in self._data:
self._data[target] = pd.Series(np.nan, index=self._data[field].index)
self._flags._data[target] = History(self._data[target].index)
if not self._data[field].index.equals(self._data[target].index):
raise ValueError(f'All Field and Target indices must match!\n'
f'Indices of {field} and {target} seem to be not congruent within the context of the given\n'
f'- fields: {fields}\n '
f'- and targets: {targets}')
history = self._flags.history[field].copy(deep=True)
if overwrite is False:
Loading