Skip to content

Commit

Permalink
Update rename test051 to test059
Browse files Browse the repository at this point in the history
  • Loading branch information
Martina Favaretto authored and tbaudier committed Jul 3, 2023
1 parent ce7856d commit 549fecf
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion opengate/tests/data
Submodule data updated from 5fb530 to 15be92
4 changes: 2 additions & 2 deletions opengate/tests/src/test059_TPSource_abs_dose.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

## ------ INITIALIZE SIMULATION ENVIRONMENT ---------- ##
paths = gate.get_default_test_paths(__file__, "gate_test044_pbs")
output_path = paths.output / "output_test051_rtp"
ref_path = paths.output_ref / "test051_ref"
output_path = paths.output / "output_test059_rtp"
ref_path = paths.output_ref / "test059_ref"


# create the simulation
Expand Down
4 changes: 2 additions & 2 deletions opengate/tests/src/test059_TPSource_gantry_rot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

## ------ INITIALIZE SIMULATION ENVIRONMENT ---------- ##
paths = gate.get_default_test_paths(__file__, "gate_test044_pbs")
output_path = paths.output / "output_test051_rtp"
ref_path = paths.output_ref / "test051_ref"
output_path = paths.output / "output_test059_rtp"
ref_path = paths.output_ref / "test059_ref"


# create the simulation
Expand Down
8 changes: 4 additions & 4 deletions opengate/tests/src/test059_TPSource_optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

## ------ INITIALIZE SIMULATION ENVIRONMENT ---------- ##
paths = gate.get_default_test_paths(__file__, "gate_test044_pbs")
output_path = paths.output / "output_test051_rtp"
ref_path = paths.output_ref / "test051_ref"
output_path = paths.output / "output_test059_rtp"
ref_path = paths.output_ref / "test059_ref"


# create the simulation
Expand Down Expand Up @@ -103,7 +103,7 @@
# nSim = 328935 # particles to simulate per beam
nSim = 20000
spots, ntot, energies, G = gate.spots_info_from_txt(
ref_path / "TreatmentPlan4Gate-gate_test51_TP_1_old.txt", "ion 6 12"
ref_path / "TreatmentPlan4Gate-gate_test59_TP_1_old.txt", "ion 6 12"
)
tps = gate.TreatmentPlanSource("RT_plan", sim)
tps.set_beamline_model(IR2HBL)
Expand Down Expand Up @@ -141,7 +141,7 @@
# read output and ref
img_mhd_out = itk.imread(dose_path)
img_mhd_ref = itk.imread(
ref_path / "idc-PHANTOM-air_box-gate_test51_TP_1-PLAN-Physical.mhd"
ref_path / "idc-PHANTOM-air_box-gate_test59_TP_1-PLAN-Physical.mhd"
)
data = itk.GetArrayViewFromImage(img_mhd_out)
data_ref = itk.GetArrayViewFromImage(img_mhd_ref)
Expand Down
8 changes: 4 additions & 4 deletions opengate/tests/src/test059_TPSource_optics_vbl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

## ------ INITIALIZE SIMULATION ENVIRONMENT ---------- ##
paths = gate.get_default_test_paths(__file__, "gate_test044_pbs")
output_path = paths.output / "output_test051_rtp"
ref_path = paths.output_ref / "test051_ref"
output_path = paths.output / "output_test059_rtp"
ref_path = paths.output_ref / "test059_ref"


# create the simulation
Expand Down Expand Up @@ -103,7 +103,7 @@
# nSim = 328935 # particles to simulate per beam
nSim = 20000
spots, ntot, energies, G = gate.spots_info_from_txt(
ref_path / "TreatmentPlan4Gate-gate_test51tps_v.txt", "ion 6 12"
ref_path / "TreatmentPlan4Gate-gate_test59tps_v.txt", "ion 6 12"
)
tps = gate.TreatmentPlanSource("RT_plan", sim)
tps.set_beamline_model(IR2VBL)
Expand Down Expand Up @@ -139,7 +139,7 @@
# read output and ref
img_mhd_out = itk.imread(dose_path)
img_mhd_ref = itk.imread(
ref_path / "idc-PHANTOM-air_box_vbl-gate_test51tps_v-PLAN-Physical.mhd"
ref_path / "idc-PHANTOM-air_box_vbl-gate_test59tps_v-PLAN-Physical.mhd"
)
data = itk.GetArrayViewFromImage(img_mhd_out)
data_ref = itk.GetArrayViewFromImage(img_mhd_ref)
Expand Down
4 changes: 2 additions & 2 deletions opengate/tests/src/test059_TPSource_range_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

## ------ INITIALIZE SIMULATION ENVIRONMENT ---------- ##
paths = gate.get_default_test_paths(__file__, "gate_test044_pbs")
output_path = paths.output / "output_test051_rtp"
ref_path = paths.output_ref / "test051_ref"
output_path = paths.output / "output_test059_rtp"
ref_path = paths.output_ref / "test059_ref"


# create the simulation
Expand Down
4 changes: 2 additions & 2 deletions opengate/tests/src/test059_TPSource_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import os

paths = gate.get_default_test_paths(__file__, "gate_test044_pbs")
output_path = paths.output / "output_test051_rtp"
ref_path = paths.output_ref / "test051_ref"
output_path = paths.output / "output_test059_rtp"
ref_path = paths.output_ref / "test059_ref"

# create the simulation
sim = gate.Simulation()
Expand Down

0 comments on commit 549fecf

Please sign in to comment.