Skip to content

Commit 88d39b1

Browse files
authored
Merge pull request #985 from int-brain-lab/hotfix/3.3.1
SpikeSortingLoader channels from electrodeSites
2 parents f889c48 + 874dd06 commit 88d39b1

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

brainbox/io/one.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,10 +1021,10 @@ def load_channels(self, **kwargs):
10211021
self.download_spike_sorting_object(obj='channels', missing='ignore', **kwargs)
10221022
channels = self._load_object(self.files['channels'], wildcards=self.one.wildcards)
10231023
if 'electrodeSites' in self.files: # if common dict keys, electrodeSites prevails
1024-
esites = channels | self._load_object(self.files['electrodeSites'], wildcards=self.one.wildcards)
1025-
if alfio.check_dimensions(esites) != 0:
1026-
esites = self._load_object(self.files['electrodeSites'], wildcards=self.one.wildcards)
1027-
esites['rawInd'] = np.arange(esites[list(esites.keys())[0]].shape[0])
1024+
channels = channels | self._load_object(self.files['electrodeSites'], wildcards=self.one.wildcards)
1025+
if alfio.check_dimensions(channels) != 0:
1026+
channels = self._load_object(self.files['electrodeSites'], wildcards=self.one.wildcards)
1027+
channels['rawInd'] = np.arange(channels[list(channels.keys())[0]].shape[0])
10281028
if 'brainLocationIds_ccf_2017' not in channels:
10291029
_logger.debug(f"loading channels from alyx for {self.files['channels']}")
10301030
_channels, self.histology = _load_channel_locations_traj(

ibllib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
import warnings
44

5-
__version__ = '3.3.0'
5+
__version__ = '3.3.1'
66
warnings.filterwarnings('always', category=DeprecationWarning, module='ibllib')
77

88
# if this becomes a full-blown library we should let the logging configuration to the discretion of the dev

release_notes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Release Note 3.3.1
2+
3+
### Bugfixes
4+
- SpikeSortingLoader: returns channels from 'electrodeSites' if available (it always was the intention...)
5+
16
## Release Note 3.3.0
27

38
### features

0 commit comments

Comments
 (0)