Skip to content

Commit c2f32a0

Browse files
committed
Remove old code from moving SynParams -> data
1 parent dc888a8 commit c2f32a0

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

fooof/synth/params.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,14 @@
11
"""Classes & functions for managing parameter choices for synthesizing power spectra."""
22

3-
from collections import namedtuple
4-
53
import numpy as np
64

7-
from fooof.core.utils import check_flat, get_data_indices
85
from fooof.core.funcs import infer_ap_func
6+
from fooof.core.utils import check_flat, get_data_indices
7+
from fooof.data import SynParams
98

109
###################################################################################################
1110
###################################################################################################
1211

13-
SynParams = namedtuple('SynParams', ['aperiodic_params', 'gaussian_params', 'nlv'])
14-
15-
SynParams.__doc__ = """\
16-
Stores parameters used to synthesize a single power spectra.
17-
18-
Attributes
19-
----------
20-
aperiodic_params : list, len 2 or 3
21-
Parameters that define the aperiodic fit. As [Offset, (Knee), Exponent].
22-
The knee parameter is only included if aperiodic is fit with knee. Otherwise, length is 2.
23-
gaussian_params : list or list of lists
24-
Fitted parameter values for the peaks. Each list is a peak, as [CF, Amp, BW].
25-
nlv : float
26-
Noise level added to the generated power spectrum.
27-
"""
28-
2912
def update_syn_ap_params(syn_params, delta, field=None):
3013
"""Update the aperiodic parameter definition in a SynParams object.
3114

0 commit comments

Comments
 (0)