From fa2e039339694aa5c0c1b5955e2b282c365832c8 Mon Sep 17 00:00:00 2001 From: lkaraba Date: Mon, 16 Mar 2026 14:55:58 -0400 Subject: [PATCH 1/2] add folder names to automatically ignore with concatenation --- preProcessing/preprocessSession.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/preProcessing/preprocessSession.m b/preProcessing/preprocessSession.m index 3457d5c..5427c96 100644 --- a/preProcessing/preprocessSession.m +++ b/preProcessing/preprocessSession.m @@ -160,6 +160,9 @@ function preprocessSession(varargin) warning('removeNoise not implemented') end +%add standard "ignore" prefixes +ignoreFolders = [ignoreFolders, "ignore", "backup", "memory_usage"]; + % Check for active breakpoints dbstatus_ = dbstatus('-completenames'); if ~isempty(dbstatus_) From dbc52e266c19a85fe0de83b7095d31d223235d00 Mon Sep 17 00:00:00 2001 From: lkaraba Date: Mon, 16 Mar 2026 16:04:31 -0400 Subject: [PATCH 2/2] prevent concatenation of memory usage file from openEphys --- preProcessing/acqID.m | 6 +++--- preProcessing/preprocessSession.m | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/preProcessing/acqID.m b/preProcessing/acqID.m index f6beb7c..cba68f3 100644 --- a/preProcessing/acqID.m +++ b/preProcessing/acqID.m @@ -60,13 +60,13 @@ for i = 1:size(useIDX, 1) checkPath = cat(2, '"', allFolders(useIDX(i), :).folder{1}, filesep, allFolders(useIDX(i), :).name{1}, ' "'); usePath = true; + if contains(checkPath, ".memory_usage") + usePath = false; %check for new memory usage dat file and ignore automatically + end for f = 1:length(ignoreFolders) if contains(checkPath, ignoreFolders(f)) usePath = false; end - if contains(checkPath, ".memory_usage") - usePath = false; %check for new memory usage dat file and ignore automatically - end end if usePath datpaths{i} = checkPath; diff --git a/preProcessing/preprocessSession.m b/preProcessing/preprocessSession.m index 5427c96..d343478 100644 --- a/preProcessing/preprocessSession.m +++ b/preProcessing/preprocessSession.m @@ -160,7 +160,7 @@ function preprocessSession(varargin) warning('removeNoise not implemented') end -%add standard "ignore" prefixes +%add standard "ignore" prefixes to be extra safe ignoreFolders = [ignoreFolders, "ignore", "backup", "memory_usage"]; % Check for active breakpoints