You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertall([isinstance(roi_id, (int, np.integer)) forroi_idinroi_ids]), "'roi_ids' must be int!"
self._roi_ids=roi_ids
self._roi_locs=roi_locations
self._sampling_frequency=sampling_frequency
self._channel_names=channel_names
self._rejected_list=rejected_list
self._accepted_list=accepted_lst
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.
The text was updated successfully, but these errors were encountered:
roiextractors/src/roiextractors/extractors/numpyextractors/numpyextractors.py
Lines 168 to 325 in 22ccdad
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.The text was updated successfully, but these errors were encountered: