Open AhalScript opened 9 months ago
Hello, the script you are using is a bit of a work in progress! I don’t know if it will work at the moment with the files in main.As to your errors, I might reckon that you are using a different version of open gate than I wrote that script for. I’ll try to push a working version in the future. I don’t quite have a bow tie model for it yet though.On Feb 15, 2024, at 12:16 AM, AhalScript @.***> wrote: Hi, I'm working on the cbct stimulation . while running your Code I come up with some errors . In the ogate_scatter.py file: In line 52
p = sim.get_physics_user_info() p.physics_list_name = "G4EmStandardPhysics_option4" It show that sim have no function get_physics_user_info() So when edit the code p = sim.physics_manager.physics_list_manager p.available_g4_physics_constructors = "G4EmStandardPhysics_option4" That error is solved . But going on furthur one line 73: add a material database sim.add_material_database(material_file)
Exception: Error while reading the file [materials.txt], current section is None. File must start with [Elements] or [Materials] Can you please Help me to sort it out
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi, I'm working on the cbct stimulation . while running your Code I come up with some errors . In the ogate_scatter.py file: In line 52
change physics
It show that sim have no function get_physics_user_info()
So when edit the code p = sim.physics_manager.physics_list_manager
p.available_g4_physics_constructors = "G4EmStandardPhysics_option4" That error is solved . But going on furthur one line 73:
add a material database
Exception: Error while reading the file [materials.txt], current section is None. File must start with [Elements] or [Materials]
Can you please Help me to sort it out