@@ -270,21 +270,21 @@ def get_rawio(filename_or_dirname, exclusive_rawio: bool = True):
270270 Parameters
271271 ----------
272272 filename_or_dirname : str | Path
273- The filename or directory name to check for file suffixes that
274- can be read by Neo. This can also be used to check whether a
273+ The filename or directory name to check for file suffixes that
274+ can be read by Neo. This can also be used to check whether a
275275 rawio could read a not-yet written file
276276 exclusive_rawio: bool, default: True
277277 Whether to return a rawio if there is only one rawio capable of
278278 reading the file. If this doesn't exist will return None.
279279 If set to False it will return all possible rawios organized
280280 by the most likely rawio.
281-
281+
282282 Returns
283283 -------
284284 possibles: neo.RawIO | None | list[neo.RawIO]
285- If exclusive_rawio is True, returns the single RawIO that
285+ If exclusive_rawio is True, returns the single RawIO that
286286 can read a file/set of files or None. If exclusive_rawio is
287- False it will return all possible RawIOs (organized by most likely)
287+ False it will return all possible RawIOs (organized by most likely)
288288 that could read the file or files.
289289 """
290290 filename_or_dirname = Path (filename_or_dirname )
@@ -295,8 +295,8 @@ def get_rawio(filename_or_dirname, exclusive_rawio: bool = True):
295295 ext = Path (filename_or_dirname ).suffix
296296 ext_list = [ext [1 :]]
297297 else :
298- ext_list = list ({filename .suffix [1 :] for filename in filename_or_dirname .glob ('*' ) if filename .is_file ()})
299-
298+ ext_list = list ({filename .suffix [1 :] for filename in filename_or_dirname .glob ("*" ) if filename .is_file ()})
299+
300300 possibles = []
301301 for ext in ext_list :
302302 for rawio in rawiolist :
@@ -310,4 +310,3 @@ def get_rawio(filename_or_dirname, exclusive_rawio: bool = True):
310310 else :
311311 possibles = [io [0 ] for io in Counter (possibles ).most_common ()]
312312 return possibles
313-
0 commit comments