Hi,
I am simulating carbon ions with the physics list "sim.physics_manager.physics_list_name = "ShieldingLIQMD_HP_EMZ"
I upgraded to the new opengate release. And get an error message related to the physics list used:
It seems to me that the parsing of _EMZ when using some other options such as _HP is faulty.
In addition there seems to be an issue with ShieldingLIQMD
An older official gate10 release worked.
Upgrade was done using python -m pip install --upgrade opengate
See details below:
When using
sim.physics_manager.physics_list_name = "ShieldingLIQMD_HP_EMZ"
Exception: Cannot find the physic list: ShieldingLIQMD_HP_EMZ
**** INFO about GATE physics lists ****
* Known Geant4 lists are: [FTFP_BERT, FTFP_BERT_TRV, FTFP_BERT_ATL, FTFP_BERT_HP, FTFQGSP_BERT, FTFP_INCLXX, FTFP_INCLXX_HP, FTF_BIC, LBE, QBBC, QGSP_BERT, QGSP_BERT_HP, QGSP_BIC, QGSP_BIC_HP, QGSP_BIC_AllHP, QGSP_FTFP_BERT, QGSP_INCLXX, QGSP_INCLXX_HP, QGS_BIC, Shielding, ShieldingLEND, ShieldingLIQMD, ShieldingM, NuBeam, Shielding_HP, ShieldingLIQMD_HP, ShieldingM_HP, FTFP_BERT_HPT, FTFP_INCLXX_HPT, QGSP_BERT_HPT, QGSP_BIC_HPT, QGSP_BIC_AllHPT, QGSP_INCLXX_HPT, Shielding_HPT, ShieldingLIQMD_HPT, ShieldingM_HPT]
* With EM options: [_EMV, _EMX, _EMY, _EMZ, _LIV, _PEN, __GS, __SS, _EM0, _WVI, __LE]
* Or the following simple physics lists with a single PhysicsConstructor:
* ['G4EmStandardPhysics', 'G4EmStandardPhysics_option1', 'G4EmStandardPhysics_option2', 'G4EmStandardPhysics_option3', 'G4EmStandardPhysics_option4', 'G4EmStandardPhysicsGS', 'G4EmLowEPPhysics', 'G4EmLivermorePhysics', 'G4EmLivermorePolarizedPhysics', 'G4EmPenelopePhysics', 'G4OpticalPhysics']
Which per se is interesting as it is listed in there.
Using without EMZ, e.g. ShieldingLIQMD_HP
Results in:
Method close_physics_constructors of object <opengate.engines.PhysicsEngine object at 0x75efc64af890> requires g4_augmented_physics_list to be set, but it is None.
Traceback (most recent call last):
File "/home/hfuchs/Documents/WORK/2026_Hedgehog/Simulation/DistanceTest/validation_sim_noSTEP/sim_MedAustron_plan_v9_neg2p_3mm_carbon.py", line 660, in <module>
main()
File "/home/hfuchs/Documents/WORK/2026_Hedgehog/Simulation/DistanceTest/validation_sim_noSTEP/sim_MedAustron_plan_v9_neg2p_3mm_carbon.py", line 637, in main
simLink, output_dictionary = simulation(
^^^^^^^^^^^
File "/home/hfuchs/Documents/WORK/2026_Hedgehog/Simulation/DistanceTest/validation_sim_noSTEP/sim_MedAustron_plan_v9_neg2p_3mm_carbon.py", line 443, in simulation
output_sim = sim.run()
^^^^^^^^^
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/managers.py", line 2266, in run
output = self._run_simulation_engine(False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/managers.py", line 2224, in _run_simulation_engine
output = se.run_engine()
^^^^^^^^^^^^^^^
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/engines.py", line 1585, in run_engine
self.initialize()
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/engines.py", line 1765, in initialize
self.physics_engine.initialize_before_runmanager()
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/engines.py", line 351, in initialize_before_runmanager
self.initialize_physics_list()
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/engines.py", line 405, in initialize_physics_list
self.physics_manager.physics_list_builder.create_physics_list(
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/decorators.py", line 33, in _with_check
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/physics.py", line 406, in create_physics_list
physics_list = self.created_physics_list_classes[physics_list_name](
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/physics.py", line 181, in __init__
super().__init__(*args, **kwargs)
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/physics.py", line 323, in __init__
bound_base_class.__init__(self, verbosity, model, variant, use_liqmd)
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
1. opengate_core.opengate_core.Shielding(verbosity: typing.SupportsInt | typing.SupportsIndex = 1, type: opengate_core.opengate_core.G4String = HP)
Invoked with: 1, 'HP', '', True
Shielding_HP
works,
Shielding_HP_EMZ again causes an error:
☠️ Fatal in /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/physics.py line 416
☠️ Cannot find the physic list: Shielding_HP_EMZ
**** INFO about GATE physics lists ****
* Known Geant4 lists are: [FTFP_BERT, FTFP_BERT_TRV, FTFP_BERT_ATL, FTFP_BERT_HP, FTFQGSP_BERT, FTFP_INCLXX, FTFP_INCLXX_HP, FTF_BIC, LBE, QBBC, QGSP_BERT, QGSP_BERT_HP, QGSP_BIC, QGSP_BIC_HP, QGSP_BIC_AllHP, QGSP_FTFP_BERT, QGSP_INCLXX, QGSP_INCLXX_HP, QGS_BIC, Shielding, ShieldingLEND, ShieldingLIQMD, ShieldingM, NuBeam, Shielding_HP, ShieldingLIQMD_HP, ShieldingM_HP, FTFP_BERT_HPT, FTFP_INCLXX_HPT, QGSP_BERT_HPT, QGSP_BIC_HPT, QGSP_BIC_AllHPT, QGSP_INCLXX_HPT, Shielding_HPT, ShieldingLIQMD_HPT, ShieldingM_HPT]
* With EM options: [_EMV, _EMX, _EMY, _EMZ, _LIV, _PEN, __GS, __SS, _EM0, _WVI, __LE]
* Or the following simple physics lists with a single PhysicsConstructor:
* ['G4EmStandardPhysics', 'G4EmStandardPhysics_option1', 'G4EmStandardPhysics_option2', 'G4EmStandardPhysics_option3', 'G4EmStandardPhysics_option4', 'G4EmStandardPhysicsGS', 'G4EmLowEPPhysics', 'G4EmLivermorePhysics', 'G4EmLivermorePolarizedPhysics', 'G4EmPenelopePhysics', 'G4OpticalPhysics']
**** ----------------------------- ****
Default is ('QGSP_BERT_EMV', {'doc': 'Name of the Geant4 physics list. DNA EM physics must be configured per region, not as a global physics list.', 'setter_hook': <function _setter_hook_physics_list_name at 0x7195fdcb4f40>})
Help : https://geant4-userdoc.web.cern.ch/UsersGuides/PhysicsListGuide/html/physicslistguide.html
⚠️ Method close_physics_constructors of object <opengate.engines.PhysicsEngine object at 0x7195fb5ba120> requires g4_augmented_physics_list to be set, but it is None.
Traceback (most recent call last):
File "/home/hfuchs/Documents/WORK/2026_Hedgehog/Simulation/DistanceTest/validation_sim_noSTEP/sim_MedAustron_plan_v9_neg2p_3mm_carbon.py", line 660, in <module>
main()
File "/home/hfuchs/Documents/WORK/2026_Hedgehog/Simulation/DistanceTest/validation_sim_noSTEP/sim_MedAustron_plan_v9_neg2p_3mm_carbon.py", line 637, in main
simLink, output_dictionary = simulation(
^^^^^^^^^^^
File "/home/hfuchs/Documents/WORK/2026_Hedgehog/Simulation/DistanceTest/validation_sim_noSTEP/sim_MedAustron_plan_v9_neg2p_3mm_carbon.py", line 443, in simulation
output_sim = sim.run()
^^^^^^^^^
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/managers.py", line 2266, in run
output = self._run_simulation_engine(False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/managers.py", line 2224, in _run_simulation_engine
output = se.run_engine()
^^^^^^^^^^^^^^^
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/engines.py", line 1585, in run_engine
self.initialize()
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/engines.py", line 1765, in initialize
self.physics_engine.initialize_before_runmanager()
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/engines.py", line 351, in initialize_before_runmanager
self.initialize_physics_list()
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/engines.py", line 405, in initialize_physics_list
self.physics_manager.physics_list_builder.create_physics_list(
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/decorators.py", line 33, in _with_check
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/physics.py", line 416, in create_physics_list
fatal(s)
File "/opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/exception.py", line 39, in fatal
raise Exception(s)
Exception: Cannot find the physic list: Shielding_HP_EMZ
**** INFO about GATE physics lists ****
* Known Geant4 lists are: [FTFP_BERT, FTFP_BERT_TRV, FTFP_BERT_ATL, FTFP_BERT_HP, FTFQGSP_BERT, FTFP_INCLXX, FTFP_INCLXX_HP, FTF_BIC, LBE, QBBC, QGSP_BERT, QGSP_BERT_HP, QGSP_BIC, QGSP_BIC_HP, QGSP_BIC_AllHP, QGSP_FTFP_BERT, QGSP_INCLXX, QGSP_INCLXX_HP, QGS_BIC, Shielding, ShieldingLEND, ShieldingLIQMD, ShieldingM, NuBeam, Shielding_HP, ShieldingLIQMD_HP, ShieldingM_HP, FTFP_BERT_HPT, FTFP_INCLXX_HPT, QGSP_BERT_HPT, QGSP_BIC_HPT, QGSP_BIC_AllHPT, QGSP_INCLXX_HPT, Shielding_HPT, ShieldingLIQMD_HPT, ShieldingM_HPT]
* With EM options: [_EMV, _EMX, _EMY, _EMZ, _LIV, _PEN, __GS, __SS, _EM0, _WVI, __LE]
* Or the following simple physics lists with a single PhysicsConstructor:
* ['G4EmStandardPhysics', 'G4EmStandardPhysics_option1', 'G4EmStandardPhysics_option2', 'G4EmStandardPhysics_option3', 'G4EmStandardPhysics_option4', 'G4EmStandardPhysicsGS', 'G4EmLowEPPhysics', 'G4EmLivermorePhysics', 'G4EmLivermorePolarizedPhysics', 'G4EmPenelopePhysics', 'G4OpticalPhysics']
**** ----------------------------- ****
Default is ('QGSP_BERT_EMV', {'doc': 'Name of the Geant4 physics list. DNA EM physics must be configured per region, not as a global physics list.', 'setter_hook': <function _setter_hook_physics_list_name at 0x7195fdcb4f40>})
Help : https://geant4-userdoc.web.cern.ch/UsersGuides/PhysicsListGuide/html/physicslistguide.html
opengate_info output:
Python version 3.12.3 (main, Jun 19 2026, 12:46:00) [GCC 13.3.0]
Platform linux
Site package /opt/simulation/env_opengate_release/lib/python3.12/site-packages
Geant4 version geant4-11-04-patch-02 [MT]
Geant4 MT True
Geant4 Qt True 6.6.2
Geant4 GDML True
Geant4 date 12-June-2026
Geant4 data /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate_core/geant4_data
ITK version 5.4.4
GATE version 10.1.1
GATE folder /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate
GATE data /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/data
GATE tests /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/tests/src
GATE core path /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate_core/opengate_core.cpython-312-x86_64-linux-gnu.so
GATE date 2026-07-21T18:11:00 (pypi)
Hi,
I am simulating carbon ions with the physics list "sim.physics_manager.physics_list_name = "ShieldingLIQMD_HP_EMZ"
I upgraded to the new opengate release. And get an error message related to the physics list used:
It seems to me that the parsing of _EMZ when using some other options such as _HP is faulty.
In addition there seems to be an issue with ShieldingLIQMD
An older official gate10 release worked.
Upgrade was done using python -m pip install --upgrade opengate
See details below:
When using
sim.physics_manager.physics_list_name = "ShieldingLIQMD_HP_EMZ"
Which per se is interesting as it is listed in there.
Using without EMZ, e.g. ShieldingLIQMD_HP
Results in:
Shielding_HP
works,
Shielding_HP_EMZ again causes an error:
opengate_info output:
Python version 3.12.3 (main, Jun 19 2026, 12:46:00) [GCC 13.3.0]
Platform linux
Site package /opt/simulation/env_opengate_release/lib/python3.12/site-packages
Geant4 version geant4-11-04-patch-02 [MT]
Geant4 MT True
Geant4 Qt True 6.6.2
Geant4 GDML True
Geant4 date 12-June-2026
Geant4 data /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate_core/geant4_data
ITK version 5.4.4
GATE version 10.1.1
GATE folder /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate
GATE data /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/data
GATE tests /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate/tests/src
GATE core path /opt/simulation/env_opengate_release/lib/python3.12/site-packages/opengate_core/opengate_core.cpython-312-x86_64-linux-gnu.so
GATE date 2026-07-21T18:11:00 (pypi)