@@ -271,6 +271,9 @@ def get_dvh_table(self, my_plan: Plan, constraint_list: list = None, opt_params:
271271 df = pd .DataFrame ()
272272 count = 0
273273 for i in range (len (dvh_updated_list )):
274+
275+ dvh_method = dvh_updated_list [i ]['parameters' ].get ('dvh_method' , None )
276+
274277 if 'dose_volume_V' in dvh_updated_list [i ]['type' ]:
275278 limit_key = self .matching_keys (dvh_updated_list [i ]['constraints' ], 'limit' )
276279 dose_key = self .matching_keys (dvh_updated_list [i ]['parameters' ], 'dose_' )
@@ -279,6 +282,7 @@ def get_dvh_table(self, my_plan: Plan, constraint_list: list = None, opt_params:
279282 df .at [count , 'dose_gy' ] = self .dose_to_gy (dose_key , dvh_updated_list [i ]['parameters' ][dose_key ])
280283 df .at [count , 'volume_perc' ] = dvh_updated_list [i ]['constraints' ][limit_key ]
281284 df .at [count , 'dvh_type' ] = 'constraint'
285+ df .at [count , 'dvh_method' ] = dvh_method
282286 df .at [count , 'bound_type' ] = dvh_updated_list [i ]['constraints' ].get ('bound_type' , 'upper' )
283287 count = count + 1
284288 goal_key = self .matching_keys (dvh_updated_list [i ]['constraints' ], 'goal' )
@@ -287,6 +291,7 @@ def get_dvh_table(self, my_plan: Plan, constraint_list: list = None, opt_params:
287291 df .at [count , 'dose_gy' ] = self .dose_to_gy (dose_key , dvh_updated_list [i ]['parameters' ][dose_key ])
288292 df .at [count , 'volume_perc' ] = dvh_updated_list [i ]['constraints' ][goal_key ]
289293 df .at [count , 'dvh_type' ] = 'goal'
294+ df .at [count , 'dvh_method' ] = dvh_method
290295 df .at [count , 'weight' ] = dvh_updated_list [i ]['parameters' ]['weight' ]
291296 df .at [count , 'bound_type' ] = dvh_updated_list [i ]['constraints' ].get ('bound_type' , 'upper' )
292297 count = count + 1
@@ -296,6 +301,7 @@ def get_dvh_table(self, my_plan: Plan, constraint_list: list = None, opt_params:
296301 df .at [count , 'structure_name' ] = dvh_updated_list [i ]['parameters' ]['structure_name' ]
297302 df .at [count , 'volume_perc' ] = dvh_updated_list [i ]['parameters' ]['volume_perc' ]
298303 df .at [count , 'dose_gy' ] = self .dose_to_gy (limit_key , dvh_updated_list [i ]['constraints' ][limit_key ])
304+ df .at [count , 'dvh_method' ] = dvh_method
299305 df .at [count , 'dvh_type' ] = 'constraint'
300306 df .at [count , 'bound_type' ] = dvh_updated_list [i ]['constraints' ].get ('bound_type' , 'upper' )
301307 count = count + 1
@@ -304,6 +310,7 @@ def get_dvh_table(self, my_plan: Plan, constraint_list: list = None, opt_params:
304310 df .at [count , 'structure_name' ] = dvh_updated_list [i ]['parameters' ]['structure_name' ]
305311 df .at [count , 'volume_perc' ] = dvh_updated_list [i ]['parameters' ]['volume_perc' ]
306312 df .at [count , 'dose_gy' ] = self .dose_to_gy (goal_key , dvh_updated_list [i ]['constraints' ][goal_key ])
313+ df .at [count , 'dvh_method' ] = dvh_method
307314 df .at [count , 'dvh_type' ] = 'goal'
308315 df .at [count , 'weight' ] = dvh_updated_list [i ]['parameters' ]['weight' ]
309316 df .at [count , 'bound_type' ] = dvh_updated_list [i ]['constraints' ].get ('bound_type' , 'upper' )
0 commit comments