Creating an Egsphant file in python gives an error for plane positions #983
-
Hi everyone,
I am 100 percent sure that my plane positions are in increasing order since I use np.sort in python to sort them. When I generate the same egsphant file in DOSXYZnrc GUI and replace the plane positions to my file, the problem is solved and simulations runs. It shows that my egsphant generated in python works well except for the planes. Why am I getting this error although my coordinates are in increasing order and I have no duplicate number? thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
What's the difference between the DOSXYZnrc GUI planes, and yours? Copy/paste them here? Also keep in mind that the voxel size must be constant along each axis. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the comment, How is that possible? Because I know I should have equal voxel sizes. the egsphant from the GUI is:
you see there is different sizes my python code generates this:
they are equal except the last 5 numbers, |
Beta Was this translation helpful? Give feedback.
There is at least one duplicate bound in the Python version: there are two -0.50. That would likely cause an issue.