Operating system: windows 11
Slicer version: 5.6.2
Expected behavior: selecting sequences from loaded DICOM
Actual behavior:
When i chose the “Manual” option, first i get this error:
FileNotFoundError: [WinError 3] The system cannot find the path specified:
'C:/Users/Lenovo/Downloads/DICOM_24020895_PHẠM THỊ LƯƠNG555171\\0'" because the subfolders in my main folder are named as "0000, 0001, ...
Rename these folders to “0, 1, 2, …” fix the problem and I could chose my sequences, but missing the “Done” button to continue
Also, if i select the “Automatic” option, nothing would happen and I get this error:
Traceback (most recent call last):
File "C:/Users/Lenovo/AppData/Local/slicer.org/Slicer 5.6.2/slicer.org/Extensions-32448/Breast_DCEMRI_FTV/lib/Slicer-5.6/qt-scripted-modules/DCE_IDandPhaseSelect.py", line 705, in onApplyButton
logic.run(self.exampath,self.dce_folders_manual,self.dce_ind_manual,self.visitstr,self.earlytime.value,self.latetime.value)
File "C:/Users/Lenovo/AppData/Local/slicer.org/Slicer 5.6.2/slicer.org/Extensions-32448/Breast_DCEMRI_FTV/lib/Slicer-5.6/qt-scripted-modules/DCE_IDandPhaseSelect.py", line 812, in run
precontrast_node, early_post_node, late_post_node = loadPreEarlyLate(exampath,visitnum,1,dce_folders_manual,dce_ind_manual,earlyadd,lateadd)
UnboundLocalError: local variable 'visitnum' referenced before assignment
Does anyone have the solution for these errors ? This extension seems like the perfect tool I was looking for and I really hope I could make it work. Thank you.
Also, the first time I manually choose the sequences, there would be a “Done” button. But as soon as I click “Done”, nothing would happen and the same error appeared as when I choose the “Automatic” option which is:
“Traceback (most recent call last):
File “C:/Users/Lenovo/AppData/Local/slicer.org/Slicer 5.6.2/slicer.org/Extensions-32448/Breast_DCEMRI_FTV/lib/Slicer-5.6/qt-scripted-modules/DCE_IDandPhaseSelect.py”, line 714, in onApplyButton
logic.run(self.exampath,self.dce_folders_manual,self.dce_ind_manual,self.visitstr,self.earlytime.value,self.latetime.value)
File “C:/Users/Lenovo/AppData/Local/slicer.org/Slicer 5.6.2/slicer.org/Extensions-32448/Breast_DCEMRI_FTV/lib/Slicer-5.6/qt-scripted-modules/DCE_IDandPhaseSelect.py”, line 812, in run
precontrast_node, early_post_node, late_post_node = loadPreEarlyLate(exampath,visitnum,1,dce_folders_manual,dce_ind_manual,earlyadd,lateadd)
UnboundLocalError: local variable ‘visitnum’ referenced before assignment”
If I chose “Automatic” first then chose “Manual” then the “Done” button would not appear.
Hello
I also have had trouble using this extension, mainly because it required the data to be organised in a specific way. I tried to modify it to read other types of DCEMRI DICOM 4D series, but unfortunately, after reviewing the code, I realised it would need major refactoring.
Therefore, I developed an alternative extension that leverages the existing 3D Slicer data management infrastructure to deal with Sequence data.
I understand that to keep things simple for users and fellow developers, it is not recommended to have duplicated extensions, so I’ll be very keen to merge mine with the existing one but will need some advice on how would be the best way to proceed.
Meanwhile, if anyone would like to try it, I’ll be happy to get some feedback on this alternative extension. Many thanks!!
Hello Mr Jose,
Sorry for the late reply. It took me some time to understand the instruction because of my limited experience with 3D Slicer, but then when I get familiar with the extension it has been working perfectly.
The only big issue I have encountered so far is when I load the whole patient’s data, the extension would register some unwanted sequences for DCE (like the DWI or MIP sequences) and even if I I click “Register Sequence”, I still can’t find my DCE sequences, as you can see in the image below.
But I found a workaround, by only select the DCE sequences when I load the data, so that the DCE sequences would be registered as the only choice.
Thank you so much for your work. I will use it much more in the future and try to give you more feedback.
Best regards,
Huy
Hello Huy
Many thanks for your feedback, I’m glad to hear it has been useful! I’m currently working on a few other bugs, so sooner will be updating the repository. I’ll also include the issue you mentioned that the DCE sequence cannot be found when multiple sequences are in the patient (I haven’t tested that case, so will try to replicate the problem and provide a solution). Thanks again, and please let me know if you detect any other issue, or just add it as an issue in the repository.