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
Within aotools\functions\zernike.py , zernikeRadialFunc calls numpy.emath.factorial which I believe was depreciated a while back.
Solution
Temporary Solution
I was able to monkey patch it in my loca environment by importing math and swapping references to numpy.math.factorial to math.factorial
Long term solution
I was going to try issue a pull request, but issues with verssioner.py are preventing me from installing it locally. (I think this is a different issue lol)
If you could make the changes that would be an easy fix to get windows users up and running.
Cheers
Cam
The text was updated successfully, but these errors were encountered:
Problem
Importing aotools in python12, on windows fails.
Cause
Within
aotools\functions\zernike.py
,zernikeRadialFunc
callsnumpy.emath.factorial
which I believe was depreciated a while back.Solution
Temporary Solution
I was able to monkey patch it in my loca environment by importing
math
and swapping references tonumpy.math.factorial
tomath.factorial
Long term solution
I was going to try issue a pull request, but issues with
verssioner.py
are preventing me from installing it locally. (I think this is a different issue lol)If you could make the changes that would be an easy fix to get windows users up and running.
Cheers
Cam
The text was updated successfully, but these errors were encountered: