Skip to content

Commit 58863db

Browse files
committed
Updated notebook using new package
1 parent 565fba7 commit 58863db

File tree

4 files changed

+385
-542
lines changed

4 files changed

+385
-542
lines changed

Tutorial.ipynb

Lines changed: 377 additions & 534 deletions
Large diffs are not rendered by default.

ex_wavelet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This example shows creating and modification of wavelet bases for fluence map compression using portpy
44
55
"""
6-
import portpy_photon as pp
6+
import portpy.photon as pp
77
from low_dim_rt import LowDimRT
88
import numpy as np
99
import cvxpy as cp
@@ -13,9 +13,9 @@
1313
def ex_wavelet():
1414
# specify the patient data location
1515
# you first need to download the patient database from the link provided in the PortPy GitHub page
16-
data_dir = r'..\data'
16+
data_dir = r'F:\Research\Data_newformat\Python-PORT\data'
1717
# pick a patient from the existing patient list to get detailed info about the patient data (e.g., beams_dict, structures, ...)
18-
patient_id = 'Lung_Patient_1'
18+
patient_id = 'Lung_Patient_2'
1919
# create my_plan object for the planner beams_dict and select among the beams which are 30 degrees apart
2020
# for the customized beams_dict, you can pass the argument beam_ids
2121
my_plan = pp.Plan(patient_id, data_dir)

low_dim_rt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import scipy
44
import numpy as np
55
import cvxpy as cp
6-
from portpy_photon.plan import Plan
7-
from portpy_photon.optimization import Optimization
8-
from portpy_photon.influence_matrix import InfluenceMatrix
6+
from portpy.photon.plan import Plan
7+
from portpy.photon.optimization import Optimization
8+
from portpy.photon.influence_matrix import InfluenceMatrix
99

1010

1111
class LowDimRT:

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
portpy-photon>=0.0.5
2-
PyWavelets>=1.4.1
1+
portpy>=0.0.1
2+
PyWavelets>=1.4.0

0 commit comments

Comments
 (0)