Skip to content

Commit 295a092

Browse files
committed
Upcasting raw mat dtype resolves #883
1 parent 00f9f4c commit 295a092

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ibllib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
import warnings
44

5-
__version__ = '3.0rc0'
5+
__version__ = '3.0rc1'
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

ibllib/pipes/mesoscope_tasks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,8 @@ def _run(self, rename_files=True, use_badframes=True, **kwargs):
796796
for m, collection in zip(all_meta, raw_image_collections):
797797
badframes_path = self.session_path.joinpath(collection, 'badframes.mat')
798798
if badframes_path.exists():
799-
raw_mat = loadmat(badframes_path, squeeze_me=True, simplify_cells=True)['badframes']
800-
badframes = np.r_[badframes, raw_mat + total_frames]
799+
raw_mat = loadmat(badframes_path, squeeze_me=True, simplify_cells=True)
800+
badframes = np.r_[badframes, raw_mat['badframes'].astype('uint32') + total_frames]
801801
total_frames += m['nFrames']
802802
if len(badframes) > 0 and use_badframes is True:
803803
# The badframes array should always be a subset of the frameQC array

0 commit comments

Comments
 (0)