Skip to content

Commit cee71fd

Browse files
author
joeyshuttleworth
authored
Merge pull request #33 from CardiacModelling/hilary_dev
astype(bool) was changing 'False' to True. Fixed
2 parents 689e4c3 + 0187549 commit cee71fd

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

pcpostprocess/scripts/run_herg_qc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def agg_func(x):
402402
x = x.values.flatten().astype(bool)
403403
return bool(np.all(x))
404404

405-
qc_df[qc_criteria] = qc_df[qc_criteria].astype(bool)
405+
qc_df[qc_criteria] = qc_df[qc_criteria].apply(lambda column: [elem == 'True' or elem is True for elem in column])
406406

407407
qc_df['protocol'] = ['staircaseramp1_2' if p == 'staircaseramp2' else p
408408
for p in qc_df.protocol]

tests/.DS_Store

-6 KB
Binary file not shown.

0 commit comments

Comments
 (0)