Skip to content

Commit 8dfc175

Browse files
Merge pull request #56 from CardiacModelling/js_fix_var_name
Fix confusing variable name
2 parents e2685b5 + af49018 commit 8dfc175

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pcpostprocess/scripts/run_herg_qc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,9 +1136,9 @@ def get_time_constant_of_first_decay(trace, times, protocol_desc, args, output_p
11361136
if not os.path.exists(os.path.dirname(output_path)):
11371137
os.makedirs(os.path.dirname(output_path))
11381138

1139-
first_120mV_step_index = [i for i, line in enumerate(protocol_desc) if line[2] == 40][0]
1139+
first_120mV_step_index = [i for i, line in enumerate(protocol_desc) if line[2] == 40][0] + 1
11401140

1141-
tstart, tend, vstart, vend = protocol_desc[first_120mV_step_index + 1, :]
1141+
tstart, tend, vstart, vend = protocol_desc[first_120mV_step_index, :]
11421142
assert (vstart == vend)
11431143
assert (vstart == -120.0)
11441144

0 commit comments

Comments
 (0)