Skip to content

Commit bf1785f

Browse files
committed
Fix formatting
1 parent d38438d commit bf1785f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jabs_postprocess/compare_gt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,9 @@ def _expand_intervals_to_frames(df):
501501
# Ensure integer frame boundaries so range() receives ints even if upstream data was cast to float
502502
for col in ["animal_idx", "start", "duration"]:
503503
if col in expanded.columns:
504-
expanded[col] = pd.to_numeric(expanded[col], errors="coerce").fillna(0).astype(int)
504+
expanded[col] = (
505+
pd.to_numeric(expanded[col], errors="coerce").fillna(0).astype(int)
506+
)
505507
expanded["frame"] = expanded.apply(
506508
lambda row: range(row["start"], row["start"] + row["duration"]), axis=1
507509
)

0 commit comments

Comments
 (0)