From a517f0128fa9c1e6e14506b1d5bc938c841ec31c Mon Sep 17 00:00:00 2001 From: JoepVanlier Date: Thu, 26 Oct 2023 19:45:43 +0200 Subject: [PATCH] fixup --- .../pylake/force_calibration/detail/diode_calibration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lumicks/pylake/force_calibration/detail/diode_calibration.py b/lumicks/pylake/force_calibration/detail/diode_calibration.py index 0b649731b..848bd55be 100644 --- a/lumicks/pylake/force_calibration/detail/diode_calibration.py +++ b/lumicks/pylake/force_calibration/detail/diode_calibration.py @@ -58,9 +58,9 @@ def multi_model(_, fc_min, d_fc_per_power, *other_params): solution, err_estimates, chi_squared = _fit_power_spectra( multi_model, - [], + np.array([]), power, - np.unique(num_points_per_block), + int(np.unique(num_points_per_block)), np.asarray(initial_params), np.asarray(lower_bounds), np.asarray(upper_bounds), @@ -148,9 +148,9 @@ def multi_model(_, fc_min, d_fc_per_power, *other_params): solution, err_estimates, chi_squared = _fit_power_spectra( multi_model, - [], + np.array([]), power, - np.unique(num_points_per_block), + int(np.unique(num_points_per_block)), np.asarray(initial_params), np.asarray(lower_bounds), np.asarray(upper_bounds),