Skip to content

Commit

Permalink
Merge pull request #33 from CardiacModelling/hilary_dev
Browse files Browse the repository at this point in the history
astype(bool) was changing 'False' to True. Fixed
  • Loading branch information
joeyshuttleworth authored Oct 25, 2024
2 parents 689e4c3 + 0187549 commit cee71fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcpostprocess/scripts/run_herg_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def agg_func(x):
x = x.values.flatten().astype(bool)
return bool(np.all(x))

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

qc_df['protocol'] = ['staircaseramp1_2' if p == 'staircaseramp2' else p
for p in qc_df.protocol]
Expand Down
Binary file removed tests/.DS_Store
Binary file not shown.

0 comments on commit cee71fd

Please sign in to comment.