Skip to content

Commit 0d3ed3b

Browse files
committed
Updated with portpy version 1.0.4
1 parent d829da5 commit 0d3ed3b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Tutorial.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
},
217217
{
218218
"cell_type": "markdown",
219-
"id": "74d02efa",
219+
"id": "67c3f386",
220220
"metadata": {},
221221
"source": [
222222
"### 4) Saving and loading plan"
@@ -252,7 +252,7 @@
252252
},
253253
{
254254
"cell_type": "markdown",
255-
"id": "0c26a769",
255+
"id": "f8d766aa",
256256
"metadata": {},
257257
"source": [
258258
"### 5) Visualize and compare the plans"
@@ -337,7 +337,7 @@
337337
},
338338
{
339339
"cell_type": "markdown",
340-
"id": "8fcf23fd",
340+
"id": "781141ae",
341341
"metadata": {},
342342
"source": [
343343
"### 6) Evaluate the plans"

ex_wavelet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ def ex_wavelet():
2020
# Note: you first need to download the patient database from the link provided in the GitHub page.
2121

2222
# specify the patient data location.
23-
data_dir = r'../data'
23+
data_dir = r'\\pisiz3echo\ECHO\Research\Data_newformat\PortPy\data'
2424

2525
# Use PortPy DataExplorer class to explore PortPy data and pick one of the patient
2626
data = pp.DataExplorer(data_dir=data_dir)
27-
patient_id = 'Lung_Patient_2'
27+
patient_id = 'Lung_Patient_3'
2828
data.patient_id = patient_id
2929

3030
# Load ct and structure set for the above patient using CT and Structures class
@@ -61,7 +61,7 @@ def ex_wavelet():
6161
opt_params['objective_functions'][i]['weight'] = 0
6262

6363
# create a plan using ct, structures, beams and influence matrix. Clinical criteria is optional
64-
my_plan = pp.Plan(ct, structs, beams, inf_matrix, clinical_criteria)
64+
my_plan = pp.Plan(ct=ct, structs=structs, beams=beams, inf_matrix=inf_matrix, clinical_criteria=clinical_criteria)
6565

6666
# create cvxpy problem using the clinical criteria and optimization parameters
6767
opt = pp.Optimization(my_plan, opt_params=opt_params)

0 commit comments

Comments
 (0)