Open TimothyRepkes opened 7 years ago
The plugin is used as part of a QC framework. The input and output file formats are described in https://github.com/wadqc/WAD_Documentatie/wiki/Specificaties-analysemodule (sorry this is in Dutch but the XML code is, well, XML. This wiki contains a lot more info, maybe you can try to figure out the general concept from it. Again this is in Dutch. The next version will me more international. Summary: there is a DICOM frontend (dcm4chee), three WAD services (collector, selector, processor) acting around a database. The selector produces the input file, the processor calls the worker (analysis module, e.g. pywadplugin) and imports its output file into the database.
Actually the bucky analysis code you refer to is supposed to be called by the processor service through https://github.com/wadqc/WAD_Python/blob/master/pywadplugin.py
The input file referes to a configuration file, there is an example here: https://github.com/wadqc/WAD_Python/blob/master/Testing/Bucky/Bucky_BEAM/series/config_BEAM.xml
Hope this helps!
Also, there already is a plugin for QC-Light CT analysis: https://github.com/wadqc/WAD_Python/tree/master/Plugins/CT/CT_Philips_QuickIQ
Hello,
I am writing a Python script for the CT QC Light procedure of the hospital I am performing my internship at.
I used the Bucky_BEAM_Phantom as a blueprint for my own (https://github.com/wadqc/WAD_Python/blob/master/Plugins/Bucky/Bucky_BEAM/Bucky_BEAM_Phantom.py). Now i have come to the point where i need to generate an output of my results and the blueprint leaves me clueless.
The second input is "results" i have no clue what format it should be but the results are added to this. I found out it was part of the "pluginresults" script but it isn't imported as a lib or anything in this script. The next function in this script however supplies the "results". But it has it as an input aswel. So it still isn't defined.
More imputs making it inimitable for me. but the last part of code in the scripts defines the "results" input with.
but i am clue less on how to apply this to my file which i have been trying to expend with trial and error and manually applying the dicom files. my code goes like:
i removed the other ROI's to make the code cleaner
The # in this part are things i tried to make de code run but to no succes. if i look at the Bucky to understand it my last "def" needs results as input but the error i get is "... is not a integer" (... = string or dict or anything i tried what is not an integer). so i just run it 1 or 3 because it is an integer.
Can anyone help me trying to get this right. How to understand to code of the Bucky to apply this on my script. If I understand how it works I can put it in my recommendations for the following internships who will be making modules to automate the QC measurements. The WAD QC is a good initiative but currently lacks some clarifications on how certain steps work.