Skip to content

Commit 44d15cc

Browse files
authored
Merge pull request #1784 from NeuralEnsemble/black-formatting
Black formatting
2 parents d9f891e + ce10a7d commit 44d15cc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

neo/rawio/neuralynxrawio/neuralynxrawio.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ def __init__(
151151

152152
if filename is not None:
153153
include_filenames = [filename]
154-
warnings.warn("`filename` is deprecated and will be removed in version 1.0. Please use `include_filenames` instead")
154+
warnings.warn(
155+
"`filename` is deprecated and will be removed in version 1.0. Please use `include_filenames` instead"
156+
)
155157

156158
if exclude_filename is not None:
157159
if isinstance(exclude_filename, str):
@@ -238,10 +240,7 @@ def _parse_header(self):
238240

239241
# 3) Filter to keep only files with correct extensions
240242
# Note: suffix[1:] removes the leading dot from file extension (e.g., ".ncs" -> "ncs")
241-
valid_file_paths = [
242-
fp for fp in file_paths
243-
if fp.suffix[1:].lower() in self.extensions
244-
]
243+
valid_file_paths = [fp for fp in file_paths if fp.suffix[1:].lower() in self.extensions]
245244

246245
# Convert back to strings for backwards compatibility with existing code
247246
full_filenames = [str(fp) for fp in valid_file_paths]

0 commit comments

Comments
 (0)