Skip to content

Commit

Permalink
Merge pull request #687 from CWDAVIESJENKINS/develop
Browse files Browse the repository at this point in the history
[Bug fix] - dicom loading from file path
  • Loading branch information
CWDAVIESJENKINS authored Dec 21, 2023
2 parents 4d3cb34 + 574522d commit 530aac4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/FID-A/inputOutput/io_loadspec_dicom.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

function out=io_loadspec_dicom(folder);

% If path to a .dcm is provided, then extract the folder location:
if ~isfolder(folder) && isfile(folder)
folder =fileparts(folder);
end

% Create list of complete filenames (incl. path) in the folder
dirFolder = dir(folder);
filesInFolder = dirFolder(~[dirFolder.isdir]);
Expand Down

0 comments on commit 530aac4

Please sign in to comment.