Skip to content
Snippets Groups Projects
Commit b3c640df authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

black applied

parent 6997fbaa
No related branches found
No related tags found
5 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1
Pipeline #77390 passed with stage
in 4 minutes and 56 seconds
......@@ -644,9 +644,12 @@ def statPass(
exceeds = exceeding_sub & exceeds
to_set = pd.Series(False, index=exceeds.index)
exceeds_df = pd.DataFrame({'g':exceeds.diff().cumsum().values, 'ex_val':exceeds.values}, index=exceeds.index)
for _, group in exceeds_df.groupby(by='g'):
if group['ex_val'].iloc[0]:
exceeds_df = pd.DataFrame(
{"g": exceeds.diff().cumsum().values, "ex_val": exceeds.values},
index=exceeds.index,
)
for _, group in exceeds_df.groupby(by="g"):
if group["ex_val"].iloc[0]:
# dt-slices include both bounds, so we subtract 1ns
start = group.index[0] - (winsz - pd.Timedelta("1ns"))
end = group.index[-1]
......
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