I’m using pydicom to open and display DICOM images. Is it possible to instantiate a pylinac class using a pydicom dataset? I.e. I want to do something along the lines of the following:
ds = pydicom.dcmread(filename, force=True)
# do some pydicom stuff
pf = picketfence.PicketFence(ds, mlc='HD Millenium')
pf.analyze()
# do some pylinac stuff
Currently it seems you can only instantiate classes with a valid filename.
Regards
Alan
Not out of the box. But for picketfence specifically, you can modify this line to be PFDicomImage.from_dataset(ds=filename) and use the syntax you have above.