Skip to content

Commit

Permalink
Save splitted results in the source folder
Browse files Browse the repository at this point in the history
  • Loading branch information
goldina committed Mar 16, 2021
1 parent 98a06b0 commit 8f0d0fd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions GUI/PhysioZooGUI_PeakDetection.m
Original file line number Diff line number Diff line change
Expand Up @@ -4341,7 +4341,13 @@ function SaveRhythms_Callback(~, ~)
res_parh = [basepath filesep 'Results'];
end

if ~isdir(res_parh)
if ~isempty(GUI.GUIDir.DirName_text.String)
[~, b] = fileparts(GUI.GUIDir.DirName_text.String);
res_parh = [res_parh filesep b];

end

if ~isfolder(res_parh) % isdir
warning('off');
mkdir(res_parh);
warning('on');
Expand Down Expand Up @@ -4431,7 +4437,7 @@ function SaveDataQuality_Callback(~, ~)
res_parh = [basepath filesep 'Results'];
end

if ~isdir(res_parh)
if ~isfolder(res_parh) % isdir
warning('off');
mkdir(res_parh);
warning('on');
Expand Down

0 comments on commit 8f0d0fd

Please sign in to comment.