Skip to content

Commit fa452bf

Browse files
committed
Allow 'cg' as a valid initial_leaf_pos option in VMAT SCP
1 parent 6424256 commit fa452bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

portpy/photon/vmat_scp/vmat_scp_optimization.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,8 @@ def run_sequential_cvx_algo_prediction(self, pred_dose_1d, *args, **kwargs):
12201220
inner_iteration = int(0)
12211221
best_obj_value = 0
12221222
vmat_params = self.vmat_params
1223-
self.arcs.get_initial_leaf_pos(initial_leaf_pos=vmat_params['initial_leaf_pos'])
1223+
if not vmat_params['initial_leaf_pos'].lower() == 'cg':
1224+
self.arcs.get_initial_leaf_pos(initial_leaf_pos=vmat_params['initial_leaf_pos'])
12241225
self.create_cvx_params()
12251226
sol_convergence = []
12261227
while True:

0 commit comments

Comments
 (0)