From 2cb19634e46b93fe82252554160d5fb26ba2bd1f Mon Sep 17 00:00:00 2001 From: Tom Donoghue Date: Sun, 18 Apr 2021 13:15:15 -0400 Subject: [PATCH] fix embedded lists for ap_fit guess --- fooof/objs/fit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fooof/objs/fit.py b/fooof/objs/fit.py index a6f6a1daa..5dca43403 100644 --- a/fooof/objs/fit.py +++ b/fooof/objs/fit.py @@ -751,7 +751,7 @@ def _simple_ap_fit(self, freqs, power_spectrum): else tuple(bound[0::2] for bound in self._ap_bounds) # Collect together guess parameters - guess = np.array([off_guess + kne_guess + exp_guess]) + guess = np.array(off_guess + kne_guess + exp_guess) # Ignore warnings that are raised in curve_fit # A runtime warning can occur while exploring parameters in curve fitting