The typing here is a bit confused and going in a few different directions.
There are no typehints for the __init__
The docstrings say that the types should be np.ndarray, but if you look at the code they are all clearly meant to be strings that are filepaths.
This seems to be an attempt to be analogous to SpikeInterface NumpySorting and NumpyRecording, however the __init__s for both of these classes take in-memory np.ndarray objects (as the docstring types would suggest), not filepaths (as the code actually implements.
https://github.com/catalystneuro/roiextractors/blob/22ccdad19697284efa5b39db09d72e9d598eac81/src/roiextractors/extractors/numpyextractors/numpyextractors.py#L168-L325
The typing here is a bit confused and going in a few different directions.
__init__
np.ndarray
, but if you look at the code they are all clearly meant to be strings that are filepaths.NumpySorting
andNumpyRecording
, however the__init__
s for both of these classes take in-memorynp.ndarray
objects (as the docstring types would suggest), not filepaths (as the code actually implements.