Skip to content

Commit

Permalink
minor printing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dungscout96 committed Aug 30, 2021
1 parent 0cdad33 commit 4683fef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified EEGLABPlugin/HEDTools3.1.1.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion HEDTools/helpers/utilities/removeTagsEEG.m
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
function [EEG,fMap] = removeTagsEEG(EEG)
fMap = [];
fprintf('Clearing EEG tags... ');
if hasSummaryTags(EEG)
fMap = fieldMap.createfMapFromStruct(EEG.etc.tags);
EEG.etc = rmfield(EEG.etc, 'tags');
elseif isfield(EEG.event, 'HED')
fMap = findtags(EEG);
EEG = pop_editeventfield(EEG, 'HED', []);
end


function summaryFound = hasSummaryTags(EEG)
% Returns true if there are summary tags found in the .etc field
Expand Down
6 changes: 3 additions & 3 deletions HEDTools/helpers/utilities/removeTagsSTUDY.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function [STUDY,ALLEEG,fMap] = removeTagsSTUDY(STUDY,ALLEEG)
fprintf('Clearing STUDY tags... \n');
fMap = fieldMap();
if hasSummaryTags(STUDY)
fMap = fieldMap.createfMapFromStruct(STUDY.etc.tags);
Expand All @@ -10,9 +11,8 @@
ALLEEG(i) = EEGTemp;
fMap.merge(fMapEEG, 'Merge', {},{});
pop_saveset(ALLEEG(i), 'filename', ALLEEG(i).filename, 'filepath', ALLEEG(i).filepath);
end


end
fprintf('Done.\n')
function summaryFound = hasSummaryTags(STUDY)
% Returns true if there are summary tags found in the .etc field
summaryFound = isfield(STUDY, 'etc') && ...
Expand Down

0 comments on commit 4683fef

Please sign in to comment.