Executable: Add the DMP-Flagger
A couple of fixes/changes that allow the value dmp
as a --flagger
option:
- Plotting failed with
flagger._flags
of pd.DataFrame because of a comparison against a pd.Series - The inital/fill-value of the flag fields
quality_cause
andquality_comment
was changed to the empty string instead ofNIL
as that lead to the string"nan"
in the final output (chainNIL
->np.nan
->"nan"
) - Fix of a performance issue in
initFlags
withflag
argument. In order to save a few (ugly) lines, I used a doublepd.DataFrame.T
- hack and it turned out, that transposing apd.DataFrame
is rather expensive (which makes sense, as every row needs to be casted to a common data type) - Special casing the dmp flagger in the executable as I failed to fit both cases (single and multiple columns flags) into a common scheme within the limited time available.