points_to_coeffs fix - adding return #291
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If you are a first-time contributor to GEOUNED, please read our contributing guidelines:
https://github.com/GEOUNED-org/GEOUNED/blob/main/CONTRIBUTING.md
Description
when using a plane defined by points an type error would be thrown for the coeff variable being none
On investigation this was found to be in geouned reverse in the mcnpinput in the Get_primitive_surfaces function a call is made to points_to_coeffs if the surface is a plane and is defined by points.
points_to_coeffs had no return so returned none.
simple fix to add a return coeffs to the points_to_coeffs function,
the points_to_coeffs could do with a refactor to be more pythonic and more readable
Fixes issue
Please link to any issues that this PR fixes
Checklist