Skip to content

Commit 56b18f9

Browse files
committed
also remove inf values when making roc_curve
1 parent 3205ba5 commit 56b18f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analysis/workflow/scripts/midway_manhattan_summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def main(
423423

424424
# remove any vals that were NA (but got converted to 0)
425425
# and also any vals that were greater than max-val
426-
na_rows = (vals == 0).any(axis=1) | (vals > max_val).any(axis=1)
426+
na_rows = (vals == 0).any(axis=1) | (vals >= max_val).any(axis=1)
427427
not_na_rows_idxs = {k: v[~na_rows] for k,v in axes_idxs.items()}
428428
if color is not None:
429429
colors = colors[~na_rows]

0 commit comments

Comments
 (0)