Skip to content

Commit e5ec8a1

Browse files
author
Joseph G. Shuttleworth
committed
Fix QC.R_leftover bug
2 parents 9af8af1 + 87cad31 commit e5ec8a1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pcpostprocess/scripts/run_herg_qc.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,15 @@ def main():
314314
passed_QC_Erev_spread = E_rev_spread <= args.reversal_spread_threshold
315315
logging.info(f"passed_QC_Erev_spread {passed_QC_Erev_spread}")
316316

317+
# R_leftover only considered for protocols used for QC (i.e. staircase protocols)
318+
passed_QC_R_leftover = np.all(sub_df[sub_df.protocol.isin(args.D2SQC.values())]
319+
["QC.R_leftover"].values
320+
)
321+
322+
logging.info(f"passed_QC_R_leftover {passed_QC_R_leftover}")
323+
324+
passed_QC_Erev_spread = E_rev_spread <= args.reversal_spread_threshold
325+
317326
qc_erev_spread[well] = passed_QC_Erev_spread
318327
erev_spreads[well] = E_rev_spread
319328

0 commit comments

Comments
 (0)