Simplify to check only namespace.
-def test_import():
+
+
+def test_import1():
import spikeinterface.extractors as se
import spikeinterface.toolkit as st
import spikeinterface.sorters as ss
import spikeinterface.comparison as sc
import spikeinterface.widgets as sw
- # se
- recording, sorting_true = se.example_datasets.toy_example(duration=60, num_channels=4, seed=0)
+ print(se.example_datasets.toy_example)
+ print(st.preprocessing.bandpass_filter)
+ print(ss.available_sorters)
+ print(sc.compare_two_sorters)
+ print(sw.plot_timeseries)
- # st
- rec_f = st.preprocessing.bandpass_filter(recording)
- # ss
- print(ss.available_sorters())
+def test_import2():
+ import spikeinterface as si
+ import spikeinterface.widgets as sw
+
+ print(si.extractors.example_datasets.toy_example)
+ print(si.toolkit.preprocessing.bandpass_filter)
+ print(si.sorters.available_sorters)
+ print(si.comparison.compare_two_sorters)
+ print(si.widgets.plot_timeseries)
- # sc
- sc.compare_two_sorters(sorting_true, sorting_true)
- # sw
- sw.plot_timeseries(rec_f)
\ No newline at end of file
+if __name__ == '__main__':
+ test_import1()
+ test_import2()
