Skip to content
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

Removing unused variables #84

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

shimwell
Copy link
Collaborator

Found a few unused variables in the code.

Perhaps best to remove them

Copy link
Member

@psauvan psauvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the change suggested in file
src/geouned/GEOReverse/Modules/MCNPinput.py

@@ -1077,7 +1077,6 @@ def get_hyperboloid_parameters(eVal, eVect, T, k, iaxis):
elliposoid = False
if iaxis is None:
iaxis = np.argmin(np.abs(eVal))
ellipsoid = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should variable not be removed. In fact there is a typo in the spelling of the variable in line 1077 "elliposoid" which is the variable used in line 1144.
Please keep the variable in line 1080 and rename the variable in lines 1077 and 1144

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent spot @psauvan

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've corrected the spelling typos and put ellipsoid back as requested.

This PR now has slightly different behaviour compared to the dev branch, as it fixes an undiscovered bug. Perhaps this helps with some of the geometries that lose particles during transport

@shimwell shimwell requested a review from psauvan April 25, 2024 08:36
@psauvan psauvan merged commit c1babf5 into GEOUNED-org:dev Apr 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants