Skip to content

Commit 9512504

Browse files
committed
add deprecation filename and execlude_filename to neuralynxio.py
1 parent c6793d5 commit 9512504

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

neo/io/neuralynxio.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
Author: Julia Sprenger, Carlos Canova
1010
"""
1111

12+
import warnings
1213
from neo.io.basefromrawio import BaseFromRaw
1314
from neo.rawio.neuralynxrawio.neuralynxrawio import NeuralynxRawIO
1415

@@ -68,6 +69,14 @@ def __init__(
6869
Default: False
6970
"""
7071

72+
if filename:
73+
warnings.warn('Deprecated and will be removed. Please use `include_filenames` instead')
74+
include_filenames = [filename]
75+
76+
if exclude_filename:
77+
warnings.warn('Deprecated and will be removed. Please use `include_filenames` instead')
78+
exclude_filenames = exclude_filename
79+
7180
NeuralynxRawIO.__init__(
7281
self,
7382
dirname=dirname,

0 commit comments

Comments
 (0)