Closed mathomp4 closed 1 year ago
Thanks for reporting! Merged.
@mrkwjc Thanks. Query: Are you planning a new tag soon? I'm currently doing:
pip install git+https://github.com/GMAO-SI-Team/ffnet
in my setup and I suppose I can now move to this repo instead, but it would be nice to get a new tag of what's in master
(now) as that seems to be the only thing that works for me in Python3 and with new scipy.
And I guess PyPI goes off of tags since the latest one there is 0.8.4 as it is here?
Oh nuts. I now just realized I might have broken Python 2 compatibility. @mrkwjc Can you test that (I no longer use Python 2)?
If so, perhaps what needs to be done is:
from scipy import zeros, ones, optimize, sqrt, ndarray, array
try:
from scipy import random
except ImportError:
from numpy import random
I'll do 0.8.5 tag for you on github. But ffnet needs a bit maintance now. For example setup.py became depreciated... Unfortutnately Travis CI stppped working for me and i'm going to move to Github Workflows for testing (also Python 2) and deploying.
I think numpy.random was always on place and ffnet should always import from there, so this change should not break things.
Thanks, @mrkwjc
Though I have no idea how PyPI stuff works. Does this mean a GitHub Workflow deploys it there? If so...cool. I'm learning! 😄
It can deploy, see for example: https://github.com/mrkwjc/einsumt/blob/master/.github/workflows/publish.yml
Very cool! Thanks for pointing it out to me. I might be doing PyPI stuff soon so I'm glad to learn
scipy no longer has a random import. You need to use numpy.
Note that despite what this says in the scipy code:
it looks like even scipy 1.11.1 doesn't have it: