Skip to content
Snippets Groups Projects

simplify/unify flags concatenation workflows

Merged Peter Lünenschloß requested to merge simplifyFlagsConcatenation into develop
1 file
+ 14
2
Compare changes
  • Side-by-side
  • Inline
+ 14
2
@@ -486,7+486,7 @@
target : str
Field name of flags history to append to.
method : {'inverse_fagg', 'inverse_bagg', 'inverse_nagg', 'inverse_fshift', 'inverse_bshift', 'inverse_nshift',
'match'}, default 'match'
The method used for projection of ``field`` flags onto ``target`` flags. See description above for more details.
@@ -559,7+559,7 @@
history = flags.history[field].apply(dummy.index, func, func_kws)
if squeeze:
history = history.max()
flags.history[target].append(history)
meta = {
"func": f"concatFlags({field})",
"args": (field, target),
"kwargs": {
"method": method,
"freq": freq,
"drop": drop,
"squeeze": squeeze,
**kwargs,
},
}
flags.history[target].append(history, meta)
else:
flags.history[target].append(history)
if drop:
data, flags = tools.dropField(data=data, flags=flags, field=field)
Loading