Skip to content

Commit

Permalink
Merge pull request #118 from MingzeDou/mingze_pull
Browse files Browse the repository at this point in the history
fixed channel_states problem, inspected
  • Loading branch information
petersenpeter authored Oct 25, 2024
2 parents ca4ae7e + 76eaa97 commit 23824f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions calc_CellMetrics/loadOpenEphysDigital.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@

% Load states and channels based on format
if exist(fullfile(basePath,'states.npy'), 'file')
openephysDig.channel_states = [openephysDig.channel_states; readNPY(fullfile(basePath,'states.npy'))];
channel_states = readNPY(fullfile(basePath,'states.npy'));
openephysDig.channel_states = [openephysDig.channel_states; channel_states];
openephysDig.channels = [openephysDig.channels; readNPY(fullfile(basePath,'sample_numbers.npy'))];
else
openephysDig.channel_states = [openephysDig.channel_states; readNPY(fullfile(basePath,'channel_states.npy'))];
channel_states = readNPY(fullfile(basePath,'channel_states.npy'));
openephysDig.channel_states = [openephysDig.channel_states; channel_states];
openephysDig.channels = [openephysDig.channels; readNPY(fullfile(basePath,'channels.npy'))];
end
openephysDig.full_words = [openephysDig.full_words; readNPY(fullfile(basePath,'full_words.npy'))];
Expand Down

0 comments on commit 23824f0

Please sign in to comment.