Commit da17f9a5 authored by Gabriel Couture's avatar Gabriel Couture

Adding field to existing layer

parent 82adbcdf
{ {
"PatientName": "Mr. ANONYMOUS",
"PatientID": "03HDQ000",
"SoftwareVersions": "OCP x.x",
"StationName": "",
"ManufacturerModelName": "Elekta",
"BrachyTreatmentType": "HDR", "BrachyTreatmentType": "HDR",
"TreatmentSites": "Prostate", "TreatmentSites": "Prostate",
"RTPlanName": "Live", "RTPlanName": "Live",
...@@ -10,7 +10,7 @@ from dicomgenerator import dao ...@@ -10,7 +10,7 @@ from dicomgenerator import dao
from dicomgenerator.layer import apply_layer from dicomgenerator.layer import apply_layer
def write_metadata( def _write_metadata(
target_directory: str, target_directory: str,
geometry: str, geometry: str,
spacing: float, spacing: float,
...@@ -83,4 +83,4 @@ def write_dicom_rt( ...@@ -83,4 +83,4 @@ def write_dicom_rt(
dvh_data.columns = ['Dose [cGy]', 'Volume [cc]'] dvh_data.columns = ['Dose [cGy]', 'Volume [cc]']
dvh_data.to_csv(join(target_directory, 'DVH.csv'), index=False) dvh_data.to_csv(join(target_directory, 'DVH.csv'), index=False)
write_metadata(target_directory, geometry, spacing, dose_gradient, roi) _write_metadata(target_directory, geometry, spacing, dose_gradient, roi)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment