You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MCNP allows 9 entry transforms, 3 entries for translation then two parts of the rotation. MCNP will then calculate the 3rd part of the rotation. When using converting from MCNP to CAD if an input file has a 9 entry transform an index out of range error is produced. It appears in the MCNPinput in the getTransMatrix() function there are if statements dealling with just translation and all others are assumed to be 12 entry transforms.
IMPORTANT
If you failed to convert a specific geometry, please isolate the geometry features producing the bug (ideally a single body), save it as a STEP file and attach it to this issue. Include also all the files used in the conversion as well as the GEOUNED version used.
Expected behavior
No error to be produced. there should probably be an extra else case for 9 entry transforms which calculates the extra part of the rotation part of the transform.
mcnp file to convert to CAD
Error message
File "/home/py1sl/conda/envs/geouned_env/lib/python3.11/site-packages/geouned/GEOReverse/Modules/MCNPinput.py", line 403, in getTransMatrix
coeff[6],
~~~~~^^^
IndexError: tuple index out of range
Please complete the following information):
OS: ubuntu via WSL
GEOUNED version
Python version 3.11
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
MCNP allows 9 entry transforms, 3 entries for translation then two parts of the rotation. MCNP will then calculate the 3rd part of the rotation. When using converting from MCNP to CAD if an input file has a 9 entry transform an index out of range error is produced. It appears in the MCNPinput in the getTransMatrix() function there are if statements dealling with just translation and all others are assumed to be 12 entry transforms.
To Reproduce
Steps to reproduce the behavior:
for example:
IMPORTANT
If you failed to convert a specific geometry, please isolate the geometry features producing the bug (ideally a single body), save it as a STEP file and attach it to this issue. Include also all the files used in the conversion as well as the GEOUNED version used.
Expected behavior
No error to be produced. there should probably be an extra else case for 9 entry transforms which calculates the extra part of the rotation part of the transform.
mcnp file to convert to CAD
Error message
File "/home/py1sl/conda/envs/geouned_env/lib/python3.11/site-packages/geouned/GEOReverse/Modules/MCNPinput.py", line 403, in getTransMatrix
coeff[6],
~~~~~^^^
IndexError: tuple index out of range
Please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: