We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c78ca commit b996c4eCopy full SHA for b996c4e
calc_CellMetrics/loadOpenEphysSettingsFile.m
@@ -22,7 +22,11 @@
22
% Electrode groups and channel mapping
23
channelmapping = [];
24
for i = 1:session.extracellular.nChannels
25
- if isfield(openEphys_metadata.continuous(1).channels{i},'channel_metadata')
+ if isstruct(openEphys_metadata.continuous.channels)
26
+ if isfield(openEphys_metadata.continuous.channels(i),'channel_metadata')
27
+ channelmapping(i) = openEphys_metadata.continuous(1).channels(i).channel_metadata.value+1;
28
+ end
29
+ elseif isfield(openEphys_metadata.continuous(1).channels{i},'channel_metadata')
30
channelmapping(i) = openEphys_metadata.continuous(1).channels{i}.channel_metadata.value+1;
31
end
32
0 commit comments