Skip to content

Commit 65d5406

Browse files
committed
add deprecation warning
1 parent 72ed43a commit 65d5406

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fooof/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
from .version import __version__
44

5+
# deprecation of fooof for specparam
6+
from warnings import warn, simplefilter
7+
simplefilter('always') # make sure user sees it once, on every import
8+
warn_text = 'Warning: The fooof package is being deprecated in favor of the\
9+
spectral parameterization (specparam) package. This version of fooof is\
10+
functional, however we recommend upgrading to specparam, because this 1.1\
11+
version of fooof will not have continuing development. All new features and\
12+
development will be done on the specparam package.'
13+
warn(warn_text, DeprecationWarning, stacklevel=2)
14+
515
from .bands import Bands
616
from .objs import FOOOF, FOOOFGroup
717
from .objs.utils import fit_fooof_3d

0 commit comments

Comments
 (0)