Skip to content
Snippets Groups Projects
Commit 91e72356 authored by Peter Lünenschloß's avatar Peter Lünenschloß Committed by David Schäfer
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 3a4aa80d
No related branches found
No related tags found
1 merge request!801Make transferFlags a multivariate function
Pipeline #203960 failed with stages
in 43 seconds
This commit is part of merge request !801. Comments created here will be created in the context of that merge request.
......@@ -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:
......
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