diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 36440d7cb..d01471f67 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: hooks: - id: trailing-whitespace - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-clang-format diff --git a/opengate/contrib/phantoms/necr.py b/opengate/contrib/phantoms/necr.py index 40865b291..e245579e1 100644 --- a/opengate/contrib/phantoms/necr.py +++ b/opengate/contrib/phantoms/necr.py @@ -1,6 +1,5 @@ from opengate.utility import g4_units - # colors (similar to the ones of Gate) red = [1, 0, 0, 1] blue = [0, 0, 1, 1] diff --git a/opengate/data/PhotonAttenuation.py b/opengate/data/PhotonAttenuation.py index 483af14c4..f5f8a7d3d 100644 --- a/opengate/data/PhotonAttenuation.py +++ b/opengate/data/PhotonAttenuation.py @@ -8,6 +8,7 @@ Adaptation of the Matlab PhotonAttenuation package written by Jarek Tuszynski. @author: vilches """ + import numpy as np from scipy.interpolate import interp1d, pchip_interpolate import re diff --git a/opengate/geometry/solids.py b/opengate/geometry/solids.py index 48dc2743f..6ac94be2b 100644 --- a/opengate/geometry/solids.py +++ b/opengate/geometry/solids.py @@ -12,7 +12,6 @@ from .utility import ensure_is_g4_rotation, ensure_is_g4_translation, vec_np_as_g4 - logger = logging.getLogger(__name__) diff --git a/opengate/sources/gansources.py b/opengate/sources/gansources.py index f481aea83..560f1e662 100644 --- a/opengate/sources/gansources.py +++ b/opengate/sources/gansources.py @@ -17,7 +17,6 @@ from ..utility import LazyModuleLoader from ..base import process_cls - # torch = LazyModuleLoader("torch") gaga = LazyModuleLoader("gaga_phsp") diff --git a/opengate/tests/src/actors/test008_dose_actor_mt.py b/opengate/tests/src/actors/test008_dose_actor_mt.py index 03cf449f5..6e9b77578 100755 --- a/opengate/tests/src/actors/test008_dose_actor_mt.py +++ b/opengate/tests/src/actors/test008_dose_actor_mt.py @@ -6,7 +6,6 @@ from scipy.spatial.transform import Rotation - if __name__ == "__main__": paths = utility.get_default_test_paths( __file__, "gate_test008_dose_actor", output_folder="test012" diff --git a/opengate/tests/src/actors/test023_filters_material.py b/opengate/tests/src/actors/test023_filters_material.py index 92d133f29..fa5bdc29f 100755 --- a/opengate/tests/src/actors/test023_filters_material.py +++ b/opengate/tests/src/actors/test023_filters_material.py @@ -4,7 +4,6 @@ import opengate as gate from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "", "test023") diff --git a/opengate/tests/src/actors/test036_adder_depth_repeat.py b/opengate/tests/src/actors/test036_adder_depth_repeat.py index a440b13b4..74b74662d 100755 --- a/opengate/tests/src/actors/test036_adder_depth_repeat.py +++ b/opengate/tests/src/actors/test036_adder_depth_repeat.py @@ -4,7 +4,6 @@ import test036_adder_depth_helpers as t036 from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths( __file__, "gate_test036_adder_depth", "test036" diff --git a/opengate/tests/src/actors/test043_garf_analog_wip.py b/opengate/tests/src/actors/test043_garf_analog_wip.py index 4d2925bbb..5f49d21e0 100755 --- a/opengate/tests/src/actors/test043_garf_analog_wip.py +++ b/opengate/tests/src/actors/test043_garf_analog_wip.py @@ -10,7 +10,6 @@ import test043_garf_helpers as test43 from opengate.tests import utility - if __name__ == "__main__": # create the simulation sim = gate.Simulation() diff --git a/opengate/tests/src/actors/test049_pet_digit_blurring_v1.py b/opengate/tests/src/actors/test049_pet_digit_blurring_v1.py index d1252d756..bfd2a50cc 100755 --- a/opengate/tests/src/actors/test049_pet_digit_blurring_v1.py +++ b/opengate/tests/src/actors/test049_pet_digit_blurring_v1.py @@ -5,7 +5,6 @@ import test049_pet_digit_blurring_helpers as t49 from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "gate_test049_pet_blur", "test049") diff --git a/opengate/tests/src/actors/test050_let_actor_letd_mt.py b/opengate/tests/src/actors/test050_let_actor_letd_mt.py index 388c83b3a..5d7b3108f 100755 --- a/opengate/tests/src/actors/test050_let_actor_letd_mt.py +++ b/opengate/tests/src/actors/test050_let_actor_letd_mt.py @@ -5,7 +5,6 @@ import opengate as gate from opengate.tests import utility - if __name__ == "__main__": do_debug = False paths = utility.get_default_test_paths( diff --git a/opengate/tests/src/actors/test058_uncertainty_flags_over_multiple_runs_mt_wip.py b/opengate/tests/src/actors/test058_uncertainty_flags_over_multiple_runs_mt_wip.py index bdbb357f0..a0ff71b12 100755 --- a/opengate/tests/src/actors/test058_uncertainty_flags_over_multiple_runs_mt_wip.py +++ b/opengate/tests/src/actors/test058_uncertainty_flags_over_multiple_runs_mt_wip.py @@ -7,7 +7,6 @@ import itk import numpy as np - # WARNING: This test does currently not work correctly # because the tested functionality od the dose actor is currently not available # Test should be successful, but that is meaningless diff --git a/opengate/tests/src/actors/test083_actor_output_pickling.py b/opengate/tests/src/actors/test083_actor_output_pickling.py index 4ad414c36..804882473 100755 --- a/opengate/tests/src/actors/test083_actor_output_pickling.py +++ b/opengate/tests/src/actors/test083_actor_output_pickling.py @@ -6,7 +6,6 @@ import opengate as gate import opengate.tests.utility as tu - if __name__ == "__main__": # create the simulation sim = gate.Simulation() diff --git a/opengate/tests/src/actors/test086_digitizeradderactor_policy.py b/opengate/tests/src/actors/test086_digitizeradderactor_policy.py index bba29986c..d81130b52 100755 --- a/opengate/tests/src/actors/test086_digitizeradderactor_policy.py +++ b/opengate/tests/src/actors/test086_digitizeradderactor_policy.py @@ -7,7 +7,6 @@ from opengate.exception import GateImplementationError import opengate.tests.utility as utility - g_cm3 = gate.g4_units.g_cm3 mm = gate.g4_units.mm Bq = gate.g4_units.Bq diff --git a/opengate/tests/src/actors/test087_beam_quality_actor_rbe_mMKM_mt.py b/opengate/tests/src/actors/test087_beam_quality_actor_rbe_mMKM_mt.py index f52ae2717..5c84284a2 100755 --- a/opengate/tests/src/actors/test087_beam_quality_actor_rbe_mMKM_mt.py +++ b/opengate/tests/src/actors/test087_beam_quality_actor_rbe_mMKM_mt.py @@ -5,7 +5,6 @@ import opengate as gate from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "test_087") diff --git a/opengate/tests/src/geometry/test028_ge_nm670_spect_2_hits.py b/opengate/tests/src/geometry/test028_ge_nm670_spect_2_hits.py index c10116162..40c0f4b04 100755 --- a/opengate/tests/src/geometry/test028_ge_nm670_spect_2_hits.py +++ b/opengate/tests/src/geometry/test028_ge_nm670_spect_2_hits.py @@ -5,7 +5,6 @@ import test028_ge_nm670_spect_2_helpers as test028 from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "", output_folder="test028_hits") diff --git a/opengate/tests/src/geometry/test028_ge_nm670_spect_4_acc_angle_noaa.py b/opengate/tests/src/geometry/test028_ge_nm670_spect_4_acc_angle_noaa.py index 5f7df71c3..174c78073 100755 --- a/opengate/tests/src/geometry/test028_ge_nm670_spect_4_acc_angle_noaa.py +++ b/opengate/tests/src/geometry/test028_ge_nm670_spect_4_acc_angle_noaa.py @@ -5,7 +5,6 @@ import test028_ge_nm670_spect_4_acc_angle_helpers as test028 from opengate.tests import utility - if __name__ == "__main__": # create the simulation sim = gate.Simulation() diff --git a/opengate/tests/src/geometry/test029_volume_time_rotation_2.py b/opengate/tests/src/geometry/test029_volume_time_rotation_2.py index a28076561..73e20be4d 100755 --- a/opengate/tests/src/geometry/test029_volume_time_rotation_2.py +++ b/opengate/tests/src/geometry/test029_volume_time_rotation_2.py @@ -5,7 +5,6 @@ import opengate as gate from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths( __file__, "gate_test029_volume_time_rotation", "test029" diff --git a/opengate/tests/src/geometry/test058_iec_six_spheres.py b/opengate/tests/src/geometry/test058_iec_six_spheres.py index 8c0b5b6bd..538f20ba5 100755 --- a/opengate/tests/src/geometry/test058_iec_six_spheres.py +++ b/opengate/tests/src/geometry/test058_iec_six_spheres.py @@ -7,7 +7,6 @@ import opengate.contrib.phantoms.nemaiec as gate_iec from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "", output_folder="test058") diff --git a/opengate/tests/src/geometry/test075_siemens_cios_alpha.py b/opengate/tests/src/geometry/test075_siemens_cios_alpha.py index 666c9d6d6..f456ea8ef 100755 --- a/opengate/tests/src/geometry/test075_siemens_cios_alpha.py +++ b/opengate/tests/src/geometry/test075_siemens_cios_alpha.py @@ -5,7 +5,6 @@ from opengate.contrib.carm.siemensciosalpha import Ciosalpha from scipy.spatial.transform import Rotation - if __name__ == "__main__": # paths # paths = utility.get_default_test_paths(__file__, output_folder="test075_siemens_cios_alpha") diff --git a/opengate/tests/src/geometry/test087_volumes_with_and_without_repetition.py b/opengate/tests/src/geometry/test087_volumes_with_and_without_repetition.py index e7fc4deb5..be1232668 100755 --- a/opengate/tests/src/geometry/test087_volumes_with_and_without_repetition.py +++ b/opengate/tests/src/geometry/test087_volumes_with_and_without_repetition.py @@ -6,7 +6,6 @@ from opengate.exception import GateImplementationError import opengate.tests.utility as utility - g_cm3 = gate.g4_units.g_cm3 mm = gate.g4_units.mm Bq = gate.g4_units.Bq diff --git a/opengate/tests/src/geometry/test095_spect_intevo_geom_plot.py b/opengate/tests/src/geometry/test095_spect_intevo_geom_plot.py index 4e1bc54ee..c8b02c1e7 100755 --- a/opengate/tests/src/geometry/test095_spect_intevo_geom_plot.py +++ b/opengate/tests/src/geometry/test095_spect_intevo_geom_plot.py @@ -5,7 +5,6 @@ from test095_spect_helpers import * import json - if __name__ == "__main__": paths = utility.get_default_test_paths( __file__, gate_folder="", output_folder="test095" diff --git a/opengate/tests/src/geometry/test095_spect_nm670_geom_plot.py b/opengate/tests/src/geometry/test095_spect_nm670_geom_plot.py index b4e8cf990..b3d49bd1b 100755 --- a/opengate/tests/src/geometry/test095_spect_nm670_geom_plot.py +++ b/opengate/tests/src/geometry/test095_spect_nm670_geom_plot.py @@ -5,7 +5,6 @@ from test095_spect_helpers import * import json - if __name__ == "__main__": paths = utility.get_default_test_paths( __file__, gate_folder="", output_folder="test095" diff --git a/opengate/tests/src/misc/test004_simple_visu_vrml_file.py b/opengate/tests/src/misc/test004_simple_visu_vrml_file.py index 238436469..2433e02f7 100755 --- a/opengate/tests/src/misc/test004_simple_visu_vrml_file.py +++ b/opengate/tests/src/misc/test004_simple_visu_vrml_file.py @@ -4,7 +4,6 @@ import opengate as gate import opengate.tests.utility as utility - if __name__ == "__main__": paths = utility.get_default_test_paths( __file__, "gate_test004_simulation_stats_actor" diff --git a/opengate/tests/src/misc/test024_py_actor_wip.py b/opengate/tests/src/misc/test024_py_actor_wip.py index a8be34545..def06e851 100755 --- a/opengate/tests/src/misc/test024_py_actor_wip.py +++ b/opengate/tests/src/misc/test024_py_actor_wip.py @@ -4,7 +4,6 @@ import opengate as gate from opengate.tests import utility - if __name__ == "__main__": # create the simulation sim = gate.Simulation() diff --git a/opengate/tests/src/misc/test061_user_event_info_mt.py b/opengate/tests/src/misc/test061_user_event_info_mt.py index 51bd85f97..b26efd3d7 100755 --- a/opengate/tests/src/misc/test061_user_event_info_mt.py +++ b/opengate/tests/src/misc/test061_user_event_info_mt.py @@ -5,7 +5,6 @@ from test061_user_event_info_helpers import create_simulation, analyse from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "", output_folder="test061") diff --git a/opengate/tests/src/misc/test080_check_classes_are_processed.py b/opengate/tests/src/misc/test080_check_classes_are_processed.py index a914c369e..a1f7175db 100755 --- a/opengate/tests/src/misc/test080_check_classes_are_processed.py +++ b/opengate/tests/src/misc/test080_check_classes_are_processed.py @@ -4,7 +4,6 @@ from opengate.exception import GateImplementationError import opengate.tests.utility as utility - if __name__ == "__main__": is_ok = True exceptions = [] diff --git a/opengate/tests/src/physics/test013_phys_lists_2_wip.py b/opengate/tests/src/physics/test013_phys_lists_2_wip.py index 5017254c0..5fe582918 100755 --- a/opengate/tests/src/physics/test013_phys_lists_2_wip.py +++ b/opengate/tests/src/physics/test013_phys_lists_2_wip.py @@ -4,7 +4,6 @@ from opengate.tests import utility from test013_phys_lists_helpers import create_pl_sim - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "gate_test013_phys_lists") diff --git a/opengate/tests/src/physics/test013_phys_lists_5_wip.py b/opengate/tests/src/physics/test013_phys_lists_5_wip.py index e44f89d8f..c987ced67 100755 --- a/opengate/tests/src/physics/test013_phys_lists_5_wip.py +++ b/opengate/tests/src/physics/test013_phys_lists_5_wip.py @@ -6,7 +6,6 @@ from opengate.userhooks import check_production_cuts from test013_phys_lists_helpers import create_pl_sim - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "gate_test013_phys_lists") diff --git a/opengate/tests/src/physics/test084_attenuation_map2_hu.py b/opengate/tests/src/physics/test084_attenuation_map2_hu.py index 29e86e797..343e10123 100755 --- a/opengate/tests/src/physics/test084_attenuation_map2_hu.py +++ b/opengate/tests/src/physics/test084_attenuation_map2_hu.py @@ -5,7 +5,6 @@ from opengate.tests import utility from opengate.sources.utility import get_spectrum - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "", output_folder="test084") diff --git a/opengate/tests/src/physics/test088_isotopes.py b/opengate/tests/src/physics/test088_isotopes.py index 495ed059c..2dcda184b 100755 --- a/opengate/tests/src/physics/test088_isotopes.py +++ b/opengate/tests/src/physics/test088_isotopes.py @@ -6,7 +6,6 @@ import numpy as np import opengate.tests.utility as utility - g_cm3 = gate.g4_units.g_cm3 mm = gate.g4_units.mm cm = gate.g4_units.cm diff --git a/opengate/tests/src/physics/test089_set_ionisation_potential.py b/opengate/tests/src/physics/test089_set_ionisation_potential.py index 630c9fc3e..37b8e61fd 100755 --- a/opengate/tests/src/physics/test089_set_ionisation_potential.py +++ b/opengate/tests/src/physics/test089_set_ionisation_potential.py @@ -5,6 +5,7 @@ @author: fava """ + import matplotlib.pyplot as plt import numpy as np from scipy.spatial.transform import Rotation diff --git a/opengate/tests/src/source/test010_generic_source_angular_distribution.py b/opengate/tests/src/source/test010_generic_source_angular_distribution.py index 731beccb4..4e64934e9 100755 --- a/opengate/tests/src/source/test010_generic_source_angular_distribution.py +++ b/opengate/tests/src/source/test010_generic_source_angular_distribution.py @@ -5,7 +5,6 @@ from opengate.tests import utility import pathlib - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, output_folder="test010") ref_path = paths.output_ref diff --git a/opengate/tests/src/source/test035_dose_rate.py b/opengate/tests/src/source/test035_dose_rate.py index 627b6d6c1..992a82231 100755 --- a/opengate/tests/src/source/test035_dose_rate.py +++ b/opengate/tests/src/source/test035_dose_rate.py @@ -6,7 +6,6 @@ from opengate.contrib.dose.doserate import create_simulation from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "", output_folder="test035") dr_data = paths.data / "dose_rate_data" diff --git a/opengate/tests/src/source/test038_gan_phsp_spect_training_dataset_mt.py b/opengate/tests/src/source/test038_gan_phsp_spect_training_dataset_mt.py index 5a36ef9e1..6422b2aaf 100755 --- a/opengate/tests/src/source/test038_gan_phsp_spect_training_dataset_mt.py +++ b/opengate/tests/src/source/test038_gan_phsp_spect_training_dataset_mt.py @@ -5,7 +5,6 @@ import opengate.contrib.phantoms.nemaiec as gate_iec from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, "", "test038") diff --git a/opengate/tests/src/source/test044_pbs_source_to_volume.py b/opengate/tests/src/source/test044_pbs_source_to_volume.py index d17b9773a..98c1b5807 100755 --- a/opengate/tests/src/source/test044_pbs_source_to_volume.py +++ b/opengate/tests/src/source/test044_pbs_source_to_volume.py @@ -8,7 +8,6 @@ import opengate as gate from opengate.tests import utility - if __name__ == "__main__": paths = utility.get_default_test_paths( __file__, "gate_test044_pbs", "test044_pbs_source_to_volume" diff --git a/opengate/tests/src/source/test053_phid_05_it_ref_mt.py b/opengate/tests/src/source/test053_phid_05_it_ref_mt.py index da5e57568..ba4cdce25 100755 --- a/opengate/tests/src/source/test053_phid_05_it_ref_mt.py +++ b/opengate/tests/src/source/test053_phid_05_it_ref_mt.py @@ -4,7 +4,6 @@ from test053_phid_helpers2 import * import opengate as gate - if __name__ == "__main__": paths = get_default_test_paths(__file__, "", output_folder="test053") diff --git a/opengate/tests/src/source/test060_phsp_source_particletype_direct.py b/opengate/tests/src/source/test060_phsp_source_particletype_direct.py index 88bb05a1e..95d6e80af 100755 --- a/opengate/tests/src/source/test060_phsp_source_particletype_direct.py +++ b/opengate/tests/src/source/test060_phsp_source_particletype_direct.py @@ -5,7 +5,6 @@ import opengate as gate from opengate.tests import utility - paths = utility.get_default_test_paths( __file__, "test060_PhsSource_ParticleName_direct", output_folder="test060" ) diff --git a/opengate/tests/src/source/test060_phsp_source_particletype_fromphs_particlename_wip.py b/opengate/tests/src/source/test060_phsp_source_particletype_fromphs_particlename_wip.py index 096a9dc8a..83351eac1 100755 --- a/opengate/tests/src/source/test060_phsp_source_particletype_fromphs_particlename_wip.py +++ b/opengate/tests/src/source/test060_phsp_source_particletype_fromphs_particlename_wip.py @@ -5,7 +5,6 @@ import opengate as gate from opengate.tests import utility - paths = utility.get_default_test_paths( __file__, "test060_PhsSource_ParticleName_direct", output_folder="test060" ) diff --git a/opengate/tests/src/source/test060_phsp_source_particletype_fromphs_pdgcode.py b/opengate/tests/src/source/test060_phsp_source_particletype_fromphs_pdgcode.py index 63691a7c2..e2bacf885 100755 --- a/opengate/tests/src/source/test060_phsp_source_particletype_fromphs_pdgcode.py +++ b/opengate/tests/src/source/test060_phsp_source_particletype_fromphs_pdgcode.py @@ -5,7 +5,6 @@ import opengate as gate from opengate.tests import utility - paths = utility.get_default_test_paths( __file__, "test060_PhsSource_ParticleName_direct", output_folder="test060" ) diff --git a/opengate/tests/src/source/test060_phsp_source_rotation.py b/opengate/tests/src/source/test060_phsp_source_rotation.py index 5761e8159..1e0ab1b3c 100755 --- a/opengate/tests/src/source/test060_phsp_source_rotation.py +++ b/opengate/tests/src/source/test060_phsp_source_rotation.py @@ -5,7 +5,6 @@ import opengate as gate from opengate.tests import utility - paths = utility.get_default_test_paths( __file__, "test060_PhsSource_ParticleName_direct", output_folder="test060" ) diff --git a/opengate/tests/src/source/test060_phsp_source_translation.py b/opengate/tests/src/source/test060_phsp_source_translation.py index beb70a9a6..a34334ea6 100755 --- a/opengate/tests/src/source/test060_phsp_source_translation.py +++ b/opengate/tests/src/source/test060_phsp_source_translation.py @@ -5,7 +5,6 @@ import opengate as gate from opengate.tests import utility - paths = utility.get_default_test_paths( __file__, "test060_PhsSource_ParticleName_direct", output_folder="test060" ) diff --git a/opengate/tests/src/source/test060_phsp_source_until_next_primary.py b/opengate/tests/src/source/test060_phsp_source_until_next_primary.py index da742fbce..5ed67e195 100755 --- a/opengate/tests/src/source/test060_phsp_source_until_next_primary.py +++ b/opengate/tests/src/source/test060_phsp_source_until_next_primary.py @@ -8,7 +8,6 @@ import gatetools.phsp as phsp from opengate.tests import utility - paths = utility.get_default_test_paths( __file__, "test060_PhsSource_ParticleName_direct", output_folder="test060" ) diff --git a/opengate/tests/src/source/test068_rotation_source.py b/opengate/tests/src/source/test068_rotation_source.py index 70e28362e..b4e25d55e 100755 --- a/opengate/tests/src/source/test068_rotation_source.py +++ b/opengate/tests/src/source/test068_rotation_source.py @@ -7,7 +7,6 @@ import numpy as np import uproot - # The test generates three different generic sources, momentum, focused and iso, which are attached to a plan. # The plan is randomly rotated, and we verify that the generated particles have a direction which is in accordance # with the applied rotations and the transmissions. diff --git a/opengate/tests/src/source/test079_acollin_b2b.py b/opengate/tests/src/source/test079_acollin_b2b.py index b39b4cf05..881c86b2d 100644 --- a/opengate/tests/src/source/test079_acollin_b2b.py +++ b/opengate/tests/src/source/test079_acollin_b2b.py @@ -15,7 +15,6 @@ import opengate.tests.utility as tu import matplotlib.pyplot as plt - ######################################################################################### # Simulations configuration that may be relevant to change ####################################################################################### diff --git a/opengate/tests/src/source/test079_acollin_e_plus_geant4_material.py b/opengate/tests/src/source/test079_acollin_e_plus_geant4_material.py index 8e8954e56..8c9ee4a13 100755 --- a/opengate/tests/src/source/test079_acollin_e_plus_geant4_material.py +++ b/opengate/tests/src/source/test079_acollin_e_plus_geant4_material.py @@ -18,7 +18,6 @@ import opengate.tests.utility as tu import matplotlib.pyplot as plt - ######################################################################################### # Simulations configuration that may be relevant to change ######################################################################################### diff --git a/opengate/tests/src/source/test079_acollin_helpers.py b/opengate/tests/src/source/test079_acollin_helpers.py index e3a897337..b1ded46bc 100644 --- a/opengate/tests/src/source/test079_acollin_helpers.py +++ b/opengate/tests/src/source/test079_acollin_helpers.py @@ -8,7 +8,6 @@ from scipy.optimize import curve_fit import matplotlib.pyplot as plt - ######################################################################################### # Constants ######################################################################################### diff --git a/opengate/tests/src/source/test079_acollin_ions_customMaterial_version_a.py b/opengate/tests/src/source/test079_acollin_ions_customMaterial_version_a.py index aab4d70d5..2802a5670 100755 --- a/opengate/tests/src/source/test079_acollin_ions_customMaterial_version_a.py +++ b/opengate/tests/src/source/test079_acollin_ions_customMaterial_version_a.py @@ -13,7 +13,6 @@ import opengate.tests.utility as tu import matplotlib.pyplot as plt - ######################################################################################### # Simulations configuration that may be relevant to change ######################################################################################### diff --git a/opengate/tests/src/source/test079_acollin_ions_customMaterial_version_b.py b/opengate/tests/src/source/test079_acollin_ions_customMaterial_version_b.py index 814f65554..fa92c0f5e 100755 --- a/opengate/tests/src/source/test079_acollin_ions_customMaterial_version_b.py +++ b/opengate/tests/src/source/test079_acollin_ions_customMaterial_version_b.py @@ -12,7 +12,6 @@ import opengate.tests.utility as tu import matplotlib.pyplot as plt - ######################################################################################### # Simulations configuration that may be relevant to change ######################################################################################### diff --git a/opengate/tests/src/source/test079_acollin_ions_gate_materials.py b/opengate/tests/src/source/test079_acollin_ions_gate_materials.py index b1ac67fd3..e92cb9d6c 100755 --- a/opengate/tests/src/source/test079_acollin_ions_gate_materials.py +++ b/opengate/tests/src/source/test079_acollin_ions_gate_materials.py @@ -13,7 +13,6 @@ import opengate.tests.utility as tu import matplotlib.pyplot as plt - ######################################################################################### # Simulations configuration that may be relevant to change ######################################################################################### diff --git a/opengate/tests/src/source/test079_acollin_ions_geant4_material.py b/opengate/tests/src/source/test079_acollin_ions_geant4_material.py index 73f82e295..04a277ba9 100755 --- a/opengate/tests/src/source/test079_acollin_ions_geant4_material.py +++ b/opengate/tests/src/source/test079_acollin_ions_geant4_material.py @@ -18,7 +18,6 @@ import opengate.tests.utility as tu import matplotlib.pyplot as plt - ######################################################################################### # Simulations configuration that may be relevant to change ######################################################################################### diff --git a/opengate/tests/src/source/test079_acollin_ions_geant4_material_inside_body.py b/opengate/tests/src/source/test079_acollin_ions_geant4_material_inside_body.py index c663186f7..cd17869c3 100755 --- a/opengate/tests/src/source/test079_acollin_ions_geant4_material_inside_body.py +++ b/opengate/tests/src/source/test079_acollin_ions_geant4_material_inside_body.py @@ -19,7 +19,6 @@ import opengate.tests.utility as tu import matplotlib.pyplot as plt - ######################################################################################### # Simulations configuration that may be relevant to change ######################################################################################### diff --git a/opengate/tests/src/source/test079_acollin_ions_two_materials.py b/opengate/tests/src/source/test079_acollin_ions_two_materials.py index 713c9da0d..76e7db49c 100755 --- a/opengate/tests/src/source/test079_acollin_ions_two_materials.py +++ b/opengate/tests/src/source/test079_acollin_ions_two_materials.py @@ -15,7 +15,6 @@ import opengate.tests.utility as tu import matplotlib.pyplot as plt - ######################################################################################### # Simulations configuration that may be relevant to change ######################################################################################### diff --git a/opengate/tests/src/source/test091_source_polarization_1.py b/opengate/tests/src/source/test091_source_polarization_1.py index d59211642..94afe880b 100755 --- a/opengate/tests/src/source/test091_source_polarization_1.py +++ b/opengate/tests/src/source/test091_source_polarization_1.py @@ -5,12 +5,12 @@ @author: fava """ + import opengate as gate from opengate.utility import g4_units import opengate.tests.utility as utility import uproot - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, output_folder="gate_test091") diff --git a/opengate/tests/src/source/test091_source_polarization_2.py b/opengate/tests/src/source/test091_source_polarization_2.py index 3e510d350..b00e9833a 100755 --- a/opengate/tests/src/source/test091_source_polarization_2.py +++ b/opengate/tests/src/source/test091_source_polarization_2.py @@ -5,6 +5,7 @@ @author: fava """ + import opengate as gate from opengate.utility import g4_units import opengate.tests.utility as utility @@ -12,7 +13,6 @@ import numpy as np from scipy.spatial.transform import Rotation - if __name__ == "__main__": paths = utility.get_default_test_paths(__file__, output_folder="gate_test090")