-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phs source fixed segmentation fault (#328) #407
base: master
Are you sure you want to change the base?
Conversation
c7174a0
to
8bf79cb
Compare
The output of the test is empty @GitFuchs
|
Fixed segmentation faults due to wrong variable type when passing from python to cpp. Was double, should be float * Enforce correct data type on python side (in case different data types in root file or delivered via uproot * restructured data transfer from python to cpp * minor adjustments * added method to rotate the phase space source in addition to movement required by treatment plan for treatment plan phs source * fixed wrongly initialized value for entry_start for multithreaded mode * fixed initialization for multithreading of phs source * Update phspsources.py In multithreading mode entry_start needs to be an array containing one entry for every thread. If it is not created by the user, create a entry_start array with the correct number of start entries all entries are spaced by the ceil(number of particles/thread)+1 * added improved initialization of starting values for phase space files and sources in multi threading * Improved phase space source documentation --------- Co-authored-by: Thomas BAUDIER <thomas.baudier@creatis.insa-lyon.fr>
c218fc8
to
b792627
Compare
Hello Hermann, Thank you for the bug fix. I integrated inside that PR and rebase everything on master. Unfortunately, the test test019_linac_elekta_versa_with_mlc_phsp_source.py does not work because inside the phsp used by that test, the PDGCode and Weight keys are not present, they are not necessary for the test. Do you have a solution? Thank you |
Hi Thomas, the mentioned tests work again. Best, |
Squash of https://github.com/OpenGATE/opengate/pull/328/files