Skip to content

Commit

Permalink
fix subclass detection when folder is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
wahln committed Aug 29, 2024
1 parent 56909b6 commit 9b5de6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion matRad/util/matRad_findSubclasses.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@
fullFolder = [folder filesep '+' packageName];
end
folderInfo = what(fullFolder);
[~,potentialClasses] = cellfun(@fileparts,{folderInfo.m{:};folderInfo.p{:}},'UniformOutput',false); %Potential class files
if ~isempty(folderInfo)
[~,potentialClasses] = cellfun(@fileparts,{folderInfo.m{:};folderInfo.p{:}},'UniformOutput',false); %Potential class files
else
potentialClasses = {};
end

%In octave the what function returns the class folders with an '@'
classFolders = folderInfo.classes;
Expand Down

0 comments on commit 9b5de6a

Please sign in to comment.