Skip to content

Commit c71ba18

Browse files
author
Joseph G. Shuttleworth
committed
Fix bug in infer reversal
1 parent ab5112c commit c71ba18

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pcpostprocess/infer_reversal.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ def infer_reversal_potential(current, times, voltage_segments, voltages,
3333
"""
3434

3535
# Get ramp bounds, assuming final ramp is the reversal ramp
36-
tstart, tend = detect_ramp_bounds(times, voltage_segments, -1)
37-
38-
istart = np.argmax(times > tstart)
39-
iend = np.argmax(times > tend)
36+
istart, iend = detect_ramp_bounds(times, voltage_segments, -1)
4037

4138
current = current[istart:iend]
4239
voltages = voltages[istart:iend]

0 commit comments

Comments
 (0)