Skip to content

Commit af48221

Browse files
authored
Merge pull request #89 from CardiacModelling/leak_correct_bugfix
Use the correctly indexed current sweep for leak correction
2 parents dd0b547 + 114e168 commit af48221

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
@@ -63,11 +63,11 @@ def do_subtraction_plot(fig, times, sweeps, before_currents, after_currents,
6363
range_of_zero = [times[0]*1e-3, times[-1]*1e-3]
6464

6565
for i in range(len(sweeps)):
66-
before_params, _ = fit_linear_leak(before_currents, voltages, times,
66+
before_params, _ = fit_linear_leak(before_currents[i], voltages, times,
6767
*ramp_bounds)
6868
all_leak_params_before.append(before_params)
6969

70-
after_params, _ = fit_linear_leak(after_currents, voltages, times,
70+
after_params, _ = fit_linear_leak(after_currents[i], voltages, times,
7171
*ramp_bounds)
7272
all_leak_params_after.append(after_params)
7373

0 commit comments

Comments
 (0)