Skip to content

Commit 00d112f

Browse files
committed
update merges for 2.0
1 parent 92794ab commit 00d112f

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

specparam/objs/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def average_reconstructions(group, avg_method='mean'):
141141

142142
models = np.zeros(shape=group.power_spectra.shape)
143143
for ind in range(len(group)):
144-
models[ind, :] = group.get_fooof(ind, regenerate=True).fooofed_spectrum_
144+
models[ind, :] = group.get_model(ind, regenerate=True).modeled_spectrum_
145145

146146
avg_model = avg_funcs[avg_method](models, 0)
147147

specparam/tests/objs/test_fit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def test_check_data():
433433
tfm.fit()
434434
assert not tfm.has_model
435435

436-
def test_fooof_to_df(tfm, tbands, skip_if_no_pandas):
436+
def test_to_df(tfm, tbands, skip_if_no_pandas):
437437

438438
df1 = tfm.to_df(2)
439439
assert isinstance(df1, pd.Series)

specparam/tests/plts/test_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def test_plot_model_custom(tfm, skip_if_no_mpl):
2828
# Make sure model has been fit - set custom frequency range
2929
tfm.fit(custom_freqs, custom_power_spectrum, freq_range=[5, 35])
3030

31-
plot_fm(tfm, freqs=custom_freqs, power_spectrum=custom_power_spectrum,
32-
freq_range=[1, 55], save_fig=True, file_path=TEST_PLOTS_PATH,
33-
file_name='test_plot_fm_custom.png')
31+
plot_model(tfm, freqs=custom_freqs, power_spectrum=custom_power_spectrum,
32+
freq_range=[1, 55], save_fig=True, file_path=TEST_PLOTS_PATH,
33+
file_name='test_plot_fm_custom.png')
3434

3535
@plot_test
3636
def test_plot_model_add_peaks(tfm, skip_if_no_mpl):

specparam/tests/utils/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_interpolate_spectrum():
5252

5353
def test_interpolate_spectra():
5454

55-
freqs, powers = gen_group_power_spectra(\
55+
freqs, powers = sim_group_power_spectra(\
5656
5, [1, 150], [1, 100, 1], [[10, 0.5, 1.0], [60, 1, 0.1], [120, 0.5, 0.1]])
5757

5858
exclude = [[58, 62], [118, 122]]

specparam/utils/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import numpy as np
77

8-
from fooof.core.modutils import docs_get_section, replace_docstring_sections
8+
from specparam.core.modutils import docs_get_section, replace_docstring_sections
99

1010
###################################################################################################
1111
###################################################################################################
@@ -178,7 +178,7 @@ def interpolate_spectra(freqs, powers, interp_range, buffer=3):
178178
--------
179179
Using simulated spectra, interpolate away line noise peaks:
180180
181-
>>> from fooof.sim import gen_group_power_spectra
181+
>>> from specparam.sim import gen_group_power_spectra
182182
>>> freqs, powers = gen_group_power_spectra(5, [1, 75], [1, 1], [[10, 0.5, 1.0], [60, 2, 0.1]])
183183
>>> freqs, powers = interpolate_spectra(freqs, powers, [58, 62])
184184
"""

specparam/utils/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import numpy as np
77

8-
from fooof.core.io import fpath
8+
from specparam.core.io import fpath
99

1010
###################################################################################################
1111
###################################################################################################

0 commit comments

Comments
 (0)