Skip to content

Commit 23824f0

Browse files
Merge pull request #118 from MingzeDou/mingze_pull
fixed channel_states problem, inspected
2 parents ca4ae7e + 76eaa97 commit 23824f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

calc_CellMetrics/loadOpenEphysDigital.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@
100100

101101
% Load states and channels based on format
102102
if exist(fullfile(basePath,'states.npy'), 'file')
103-
openephysDig.channel_states = [openephysDig.channel_states; readNPY(fullfile(basePath,'states.npy'))];
103+
channel_states = readNPY(fullfile(basePath,'states.npy'));
104+
openephysDig.channel_states = [openephysDig.channel_states; channel_states];
104105
openephysDig.channels = [openephysDig.channels; readNPY(fullfile(basePath,'sample_numbers.npy'))];
105106
else
106-
openephysDig.channel_states = [openephysDig.channel_states; readNPY(fullfile(basePath,'channel_states.npy'))];
107+
channel_states = readNPY(fullfile(basePath,'channel_states.npy'));
108+
openephysDig.channel_states = [openephysDig.channel_states; channel_states];
107109
openephysDig.channels = [openephysDig.channels; readNPY(fullfile(basePath,'channels.npy'))];
108110
end
109111
openephysDig.full_words = [openephysDig.full_words; readNPY(fullfile(basePath,'full_words.npy'))];

0 commit comments

Comments
 (0)