Closed jhuguetn closed 9 years ago
Great to hear that you're working on a fBIRN plugin. That's one on my 'wanted' list, so if you have something working, don't forget to send a pull request. Regarding your question, the wadwrapper_lib.prepareInput() is a very specific input function written for my plugins ported to WAD-Python. I don't know of anyone using it except me (and possibly you). As a solution for your issue, it is recommended to use the more generic solution: from pyWADLib import pydicom_series as dicomseries dcmseries = dicomseries.read_files(input,showProgress=False, readPixelData=False,skipNonImageFiles=True) with 'input' being a list of files, or the name of a directory.
Thanks for your prompt reply.
I forked the WAD_Python project to my own workspace to work on that (right now I am working in Signal Fluctuation Noise Ratio test), so once is mature enough I would be happy to send a pull request proposal to main wadqc repository.
Generic function dicomseries.read_files() is working fine as suggested for MRI ...expect when dealing with enhanced DICOM MRI scans. There, just crashes (pydicom_series._finish() is not able to detect the PixelSpacing tag, probably because info is nested in sequence) and returns a void object.
One of the reasons why I decided to use wadwrapper_lib.prepareInput() method was that it has special flow for reading an enhanced DICOM instance.
But no worries, I will try to implement my own solution based on what is available.
Hi there,
I am willing to use WAD-QC (and WAD-Python, pywad) for managing, deploying and running my own QC tests in a regular basis on MRI scanners.
Functional MRI scans may contain a large number or files and somehow, Dcm4chee splits series files in different subdirs (even though they are logically seen as a unique series instance).
The function wadwrapper_lib.prepareInput() checks if all scan input XML data files are in the same directory but due to such Dcm4chee particular method at storing image files, given function raises an expection:
Any ideas?