diff --git a/pcpostprocess/subtraction_plots.py b/pcpostprocess/subtraction_plots.py index 2f90141..2341076 100644 --- a/pcpostprocess/subtraction_plots.py +++ b/pcpostprocess/subtraction_plots.py @@ -58,7 +58,7 @@ def do_subtraction_plot(fig, times, sweeps, before_currents, after_currents, *ramp_bounds) all_leak_params_before.append(before_params) - after_params, _ = fit_linear_leak(before_currents, voltages, times, + after_params, _ = fit_linear_leak(after_currents, voltages, times, *ramp_bounds) all_leak_params_after.append(after_params)