Skip to content

Commit 82f2b7a

Browse files
massiabbastbaudier
authored andcommitted
Update test098
1 parent 3ecc429 commit 82f2b7a

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

opengate/tests/data

Submodule data updated from ddce793 to 1d13e95

opengate/tests/src/physics/test098_optical_physics_voxelized_vol.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
import numpy as np
1414

1515
if __name__ == "__main__":
16-
17-
paths = utility.get_default_test_paths(
18-
__file__, "gate_test098", output_folder="gate_test098"
19-
)
16+
paths = utility.get_default_test_paths(__file__, "test098", output_folder="test098")
2017

2118
cm = g4_units.cm
2219
mm = g4_units.mm
@@ -32,16 +29,18 @@
3229
sim.number_of_threads = 2
3330
sim.random_seed = "auto"
3431

35-
sim.volume_manager.add_material_database(paths.gate_data / "GateMaterials.db")
32+
sim.volume_manager.add_material_database(paths.data / "GateMaterials.db")
3633

3734
sim.physics_manager.special_physics_constructors.G4OpticalPhysics = True
3835

39-
sim.physics_manager.optical_properties_file = paths.gate_data / "Materials.xml"
36+
sim.physics_manager.optical_properties_file = (
37+
paths.data / "test098" / "Materials.xml"
38+
)
4039

4140
sim.world.size = [6 * cm, 6 * cm, 2 * cm]
4241
sim.world.material = "Air"
4342

44-
img_path = paths.data / "vox_volume.mhd"
43+
img_path = paths.data / "test098" / "vox_volume.mhd"
4544

4645
img = sitk.ReadImage(img_path)
4746
Spacing = img.GetSpacing()
@@ -57,7 +56,7 @@
5756
[
5857
-0.5,
5958
0.5,
60-
"Fat",
59+
"Adipose",
6160
],
6261
[0.5, 1.5, "Muscle"],
6362
]
@@ -89,7 +88,7 @@
8988

9089
compare = utility.compare_root3
9190

92-
root_ref_path = paths.data / "test098_box_volume.root"
91+
root_ref_path = paths.data / "test098" / "test098_box_volume.root"
9392
root_output_path = sim.output_dir / phsp.output_filename
9493

9594
branch = "phsp;1"

0 commit comments

Comments
 (0)