Hello,
I'm just getting started with Dicompyler , and want to retrieve DVH data from my files.
I followed the getting-started tutorial and it looks like this:
#Modules
import os
import numpy as np
import matplotlib.pyplot as plt
import urllib.request
import os.path
import dicompylercore
from dicompylercore import dicomparser, dvh, dvhcalc
dp = dicomparser.DicomParser(r"C:\Users\...\rtss.dcm")
dp1 = dicomparser.DicomParser(r"C:\Users\...\rtdose.dcm")
#Get a dictionary of structure information
structures = dp.GetStructures()
print (structures)
#DVH = dp1.GetDVHs()
#print(DVH)
# Access DVH data
rtdose = dicomparser.DicomParser(r"C:\Users\....\rtdose.dcm")
test = dvh.DVH.from_dicom_dvh(r"C:\Users\...\rtdose.dcm", 2)
test.describe()
Unfortunately, I keep getting the error:
AttributeError: 'str' object has no attribute 'DVHSequence'
I'm not 100% this is a dicompyler related question, but I would still be grateful if somebody could help me with this issue.
Greetings and thank you