Skip to content

Commit 4e1ad2c

Browse files
committed
Merge remote-tracking branch 'origin/develop' into job_queues
2 parents 190c7c3 + e5e9430 commit 4e1ad2c

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

brainbox/io/one.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -941,17 +941,18 @@ def _get_spike_sorting_collection(self, spike_sorter='pykilosort', revision=None
941941
_logger.debug(f"selecting: {collection} to load amongst candidates: {self.collections}")
942942
return collection
943943

944-
def download_spike_sorting_object(self, obj, spike_sorter='pykilosort', dataset_types=None):
944+
def download_spike_sorting_object(self, obj, spike_sorter='pykilosort', dataset_types=None, collection=None):
945945
"""
946946
Downloads an ALF object
947947
:param obj: object name, str between 'spikes', 'clusters' or 'channels'
948948
:param spike_sorter: (defaults to 'pykilosort')
949-
:param dataset_types: list of extra dataset types
949+
:param dataset_types: list of extra dataset types, for example ['spikes.samples']
950+
:param collection: string specifiying the collection, for example 'alf/probe01/pykilosort'
950951
:return:
951952
"""
952953
if len(self.collections) == 0:
953954
return {}, {}, {}
954-
self.collection = self._get_spike_sorting_collection(spike_sorter=spike_sorter)
955+
self.collection = collection or self._get_spike_sorting_collection(spike_sorter=spike_sorter)
955956
_logger.debug(f"loading spike sorting from {self.collection}")
956957
spike_attributes, cluster_attributes = self._get_attributes(dataset_types)
957958
attributes = {'spikes': spike_attributes, 'clusters': cluster_attributes, 'channels': None,

ibllib/dsp/voltage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ def interpolate_bad_channels(data, channel_labels=None, h=None, p=1.3, kriging_d
218218
data[i, :] = 0
219219
continue
220220
data[i, :] = np.matmul(weights[imult], data[imult, :])
221-
# from easyqc.gui import viewseis
222-
# f = viewseis(data.T, si=1/30, h=h, title='interp2', taxis=0)
221+
# from viewephys.gui import viewephys
222+
# f = viewephys(data.T, fs=1/30, h=h, title='interp2')
223223
return data
224224

225225

release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## Release Note 2.10
2+
## unreleased
3+
- brainbox.io.one.SpikeSortingLoader: option to load using `collection` argument
24

35
## Release Note 2.10.6 2022-03-15
46
- Allow parent tasks to be 'Incomplete' to run task on local server

0 commit comments

Comments
 (0)