diff --git a/eddy/structurefunction.py b/eddy/structurefunction.py index 213db43..7d8ebfb 100644 --- a/eddy/structurefunction.py +++ b/eddy/structurefunction.py @@ -2918,7 +2918,7 @@ def calculate_modal_power(self, modes=(1,), axis=None, p0=None): * ``frac_of_data_total``: ``sum_m frac_of_data``, ``(N_ref,)``. * ``popt``, ``perr``: the raw fit outputs. """ - popt, perr = self.fit_spiral(modes=modes, axis=axis, p0=p0) + popt, perr, _ = self.fit_spiral(modes=modes, axis=axis, p0=p0) offset = popt[:, 0] amps = popt[:, 1:] power = amps ** 2