-
Notifications
You must be signed in to change notification settings - Fork 17
3243 remove gamfun and replace it with the analytical solution from scipy #3244
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
3243 remove gamfun and replace it with the analytical solution from scipy #3244
Conversation
…a instead of maths_library.gamfun
…ecial.gamma instead
j-a-foster
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good to me. I'm assuming where you've removed maths_library that it's only imported to call gamfun?
…scipy.special.gamma instead" This reverts commit 34219f9.
|
@j-a-foster Have reverted the commit as it was causing problems with |
Co-authored-by: Timothy <75321887+timothy-nunn@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 52 (integrate.simpson) needs to become sp.integrate...
…cipy (#3244) * Refactor plasma_profiles.py and profiles.py to use scipy.special.gamma instead of maths_library.gamfun * Refactor maths_library.f90 to remove gamfun function and use scipy.special.gamma instead * Black format * Update unit tests * Revert "Refactor maths_library.f90 to remove gamfun function and use scipy.special.gamma instead" This reverts commit 34219f9. * Update process/profiles.py Co-authored-by: Timothy <75321887+timothy-nunn@users.noreply.github.com> * chore: Update scipy import in profiles.py --------- Co-authored-by: Timothy <75321887+timothy-nunn@users.noreply.github.com>
Description
The use of
gamfun()frommaths_library.f90withinplasma_profiles.pyfor the temperature profile has been removed and replaced withscipy.special.gammaChecklist
I confirm that I have completed the following checks: