dicompyler / dicompyler-core

A library of core radiation therapy modules for DICOM RT used by dicompyler
https://dicompyler-core.readthedocs.io
Other
146 stars 68 forks source link

Module 'dicompylercore' has no attribute 'dose' #366

Open TBurlacu-tud opened 1 year ago

TBurlacu-tud commented 1 year ago

Problem is in the title. I tried doing

from dicompylercore import dose

# Dose grid summation with (tri-linear) interpolation if dose grids are not spatially coincident
grid_1 = dose.DoseGrid(dose_file_1)
grid_2 = dose.DoseGrid(dose_file_2)

as per the documentation. I also tried accessing it directly using dicompylercore.dose.DoseGrid('/foo/bar/rtdose.dcm'). Both of them returned the same lack the 'dose' attribute/name.

bastula commented 1 year ago

I'm unable to reproduce this. What version of dicompyler-core are you using?

sama2689 commented 1 year ago

Try downgrading dicompyler-core to version 0.5.6. This worked for me.