Skip to content

Commit

Permalink
Merge pull request OpenGATE#560 from OpenGATE/consolidate_tests019_010
Browse files Browse the repository at this point in the history
Consolidate tests019 test010
  • Loading branch information
dsarrut authored Nov 17, 2024
2 parents 994996b + 527775c commit 8e7c791
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def run_simulation(paths):
sim.g4_verbose_level = 1
sim.visu = False
sim.number_of_threads = 1
# sim.random_seed = 987654321
sim.random_seed = 987654321
sim.output_dir = paths.output

# units
Expand Down
1 change: 1 addition & 0 deletions opengate/tests/src/test019_linac_elekta_versa_with_mlc.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def is_ok_test019(rootfile, x_field, y_field, tol=0.15):
mlc = versa.add_mlc(sim, linac.name)
x_field = np.random.randint(10, 20, 1)[0] * cm
y_field = np.random.randint(10, 20, 1)[0] * cm
print("field: ", x_field, y_field)
versa.set_rectangular_field(mlc, jaws, x_field, y_field, sad)

mlc_box = sim.volume_manager.get_volume(f"linac_box_mlc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def validation_test_19_rt_plan(
while MU == 0:
l_cp = [np.random.randint(0, len(rt_plan_parameters["jaws 1"]), 1)[0]]
# l_cp = [3]
print("Control point: ", l_cp)
MU = rt_plan_parameters["weight"][l_cp[0]]
nb_part = nb_part / MU
versa.set_linac_head_motion(
Expand Down

0 comments on commit 8e7c791

Please sign in to comment.