Skip to content
Snippets Groups Projects
Commit 234763b9 authored by David Schäfer's avatar David Schäfer
Browse files

black

parent 91e72356
No related branches found
No related tags found
1 merge request!801Make transferFlags a multivariate function
Pipeline #204051 passed with stages
in 4 minutes and 41 seconds
......@@ -377,10 +377,12 @@ class FlagtoolsMixin:
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}')
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