cannot import sortingview
Closed this issue · 1 comments
khl02007 commented
@magland
on version 0.8.6
possibly related to #196
File ~/repos/spyglass/src/spyglass/spikesorting/sortingview.py:2, in <module>
1 import datajoint as dj
----> 2 import sortingview as sv
4 from ..common.common_lab import LabTeam, LabMember
5 from .sortingview_helper_fn import (_add_metrics_to_sorting_in_workspace,
6 _create_spikesortingview_workspace,
7 _set_workspace_permission)
File ~/miniconda3/envs/spyglass/lib/python3.8/site-packages/sortingview/__init__.py:11, in <module>
9 from .load_extractors.copy_recording_extractor import copy_recording_extractor, upload_recording_extractor
10 from .load_extractors.copy_sorting_extractor import copy_sorting_extractor, upload_sorting_extractor
---> 11 from .load_extractors.save_recording import save_recording
File ~/miniconda3/envs/spyglass/lib/python3.8/site-packages/sortingview/load_extractors/save_recording.py:3, in <module>
1 from typing import Any
2 import spikeinterface as si
----> 3 from .h5extractors.h5recordingextractorv1 import H5RecordingExtractorV1
6 def save_recording(R: si.BaseRecording, *, format: str, filename: str, dtype: Any):
7 if format == 'h5_v1':
File ~/miniconda3/envs/spyglass/lib/python3.8/site-packages/sortingview/load_extractors/h5extractors/h5recordingextractorv1.py:6, in <module>
3 import spikeinterface as si
4 import spikeextractors as se
----> 6 from .TimeseriesModel_Hdf5.TimeseriesModel_Hdf5 import TimeseriesModel_Hdf5, prepare_timeseries_hdf5_from_recording, set_geom_on_recording
9 class H5RecordingExtractorV1(se.RecordingExtractor):
10 extractor_name = 'H5RecordingExtractorV1'
ModuleNotFoundError: No module named 'sortingview.load_extractors.h5extractors.TimeseriesModel_Hdf5'
magland commented
Another missing init.py.
Should be fixed in 0.8.7