Skip to content

Commit d33a0ff

Browse files
committed
fix dev demo import
1 parent 9fd116c commit d33a0ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/analyses/plot_dev_demo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from specparam.plts.aperiodic import plot_aperiodic_params, plot_aperiodic_fits
4747

4848
# Import functions to examine frequency-by-frequency error of model fits
49-
from specparam.analysis.error import compute_pointwise_error_model, compute_pointwise_error_group
49+
from specparam.analysis.error import compute_pointwise_error, compute_pointwise_error_group
5050

5151
# Import helper utility to access data
5252
from specparam.utils.download import fetch_example_data
@@ -226,7 +226,7 @@
226226
# It can be useful to plot frequency-by-frequency error of the model fit,
227227
# to identify where in frequency space the spectrum is (or is not) being fit well.
228228
# When fitting individual spectrum, this can be accomplished using the
229-
# `compute_pointwise_error_model` function.
229+
# `compute_pointwise_error` function.
230230
#
231231
# In this case, we can see that error fluctuates around 0.05, which is the same as
232232
# the mean absolute error for the model (MAE). There are points in the spectrum where
@@ -237,12 +237,12 @@
237237
###################################################################################################
238238

239239
# Plot frequency-by-frequency error
240-
compute_pointwise_error_model(fm, plot_errors=True)
240+
compute_pointwise_error(fm, plot_errors=True)
241241

242242
###################################################################################################
243243

244244
# Compute the frequency-by-frequency errors
245-
errs_fm = compute_pointwise_error_model(fm, plot_errors=False, return_errors=True)
245+
errs_fm = compute_pointwise_error(fm, plot_errors=False, return_errors=True)
246246

247247
###################################################################################################
248248

0 commit comments

Comments
 (0)