Skip to content

Commit da7935a

Browse files
author
Joseph G. Shuttleworth
committed
Fix selecting wrong current
1 parent ef66860 commit da7935a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pcpostprocess/subtraction_plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ def do_subtraction_plot(fig, times, sweeps, before_currents, after_currents,
6969
np.nan)
7070

7171
for i in range(len(sweeps)):
72-
before_params, before_leak_current = fit_linear_leak(before_currents, voltages, times,
72+
before_params, before_leak_current = fit_linear_leak(before_currents[i], voltages, times,
7373
*ramp_bounds)
7474
before_leak_currents[i, :] = before_leak_current
7575
all_leak_params_before.append(before_params)
7676

77-
after_params, after_leak_current = fit_linear_leak(after_currents, voltages, times,
77+
after_params, after_leak_current = fit_linear_leak(after_currents[i], voltages, times,
7878
*ramp_bounds)
7979
all_leak_params_after.append(after_params)
8080
after_leak_currents[i, :] = after_leak_current

0 commit comments

Comments
 (0)