Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when sorting dicoms #1

Open
jbteves opened this issue Feb 4, 2019 · 4 comments
Open

Error when sorting dicoms #1

jbteves opened this issue Feb 4, 2019 · 4 comments
Assignees

Comments

@jbteves
Copy link

jbteves commented Feb 4, 2019

When running on a folder dicom via dicomSort('dicom') I get the following error:

Not preserving files, removing folders:
1/1448:    /Users/joshuateves/Downloads/20180803_112320_SCB_026/dicom/MR.1.3.12.2.1107.5.2.43.167021.2018080311235313270480384
Error using rmdir
/Users/joshuateves/Downloads/20180803_112320_SCB_026/dicom/MR.1.3.12.2.1107.5.2.43.167021.2018080311235313270480384 is not a directory.

Error in dicomSort (line 261)
            rmdir(fullfile(studyDirFolders(i).folder,studyDirFolders(i).name),'s');

MacOS Mojave, MATLAB R2017b

@TheJaeger TheJaeger self-assigned this Feb 4, 2019
@TheJaeger
Copy link
Owner

Error occurs because the script is unable to append .dcm at the end of some files witthout an extension. Will look into a fix.

@TheJaeger
Copy link
Owner

TheJaeger commented Feb 12, 2019

How did you run dicomSort? I would run it as dicomSort('/Users/joshuateves/Downloads/20180803_112320_SCB_026');

@jbteves
Copy link
Author

jbteves commented Feb 12, 2019

That's how I ran it, yes.

@TheJaeger
Copy link
Owner

I was able to replicate your issue by directing dicomSort to a subject_directory instead of study_directory consisting of multiple subjects. I'll come get your image when I get the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants