Skip to content

Commit

Permalink
Fix stream name parsing in OpenEphys format
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Jun 22, 2023
1 parent 6d73f4e commit f84ec7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
% Find all continuous files belonging to this stream
streamFiles = {};
for j = 1:length(files)
if contains(files{j}, currentStream)
if contains(erase(files{j},["_"," "]), erase(currentStream, ["_"," "]))
streamName = split(currentStream, '_');
processorId = streamName{1};
streamFiles{end+1} = files{j};
Expand All @@ -151,7 +151,7 @@

[sampleNumbers, ~, ~, validRecords] = self.loadContinuousFile(streamFiles{1});

filename = fullfile(self.directory, strcat(currentStream, ".timestamps"));
filename = fullfile(self.directory, strcat(erase(currentStream,[" "]), ".timestamps"));

data = memmapfile(filename, 'Writable', false, 'Offset', 0, 'Format', 'double');

Expand Down

0 comments on commit f84ec7e

Please sign in to comment.