Closed Y-Isaac closed 8 months ago
I confirmed that from_numpy_matrix()
was removed in networkx 3.0 and that the lockfile has installed 3.1
This is a bit frustrating for me because I previously used the --hess
flag in my work. Thus I must have had networkx<3 in my local frozen conda environment. The problem here is that the current lockfile was created and tested only against the tests in test_finemapper.py
(which doesn't test --hess
).
@omerwe how would you like to proceed? I see two options:
from_numpy_matrix()
to from_numpy_array()
polyun.yml
and regenerate polyfun.yml.lock
?Regardless it would be nice to have a test added for --hess
@jdblischak @Y-Isaac thanks for your support in this. I updated from_numpy_matrix() -> from_numpy_array().
I wish I had the bandwidth to add a test for --hess, but at the moment I have very low capacity for this. Hopefully there won't be any more backwards-compatability-breaking changes in the PolyFun package ecosystem for the next year or so :)
thanks for your support in this. I updated from_numpy_matrix() -> from_numpy_array().
That works. Thanks!
I wish I had the bandwidth to add a test for --hess, but at the moment I have very low capacity for this.
I totally get it when a project no longer has the priority it used to. Has happened to me many times
Hopefully there won't be any more backwards-compatability-breaking changes in the PolyFun package ecosystem for the next year or so :)
Unfortunately these aren't new breaking changes, but existing ones. I created the lockfile long after you initially developed this code base. So any code path that isn't covered by the test cases is subject to these types of failures where even the lockfile version has an incompatible version installed. But with any luck @Y-Isaac will find all the currently existing ones 🙂
Thanks for your confirmation! Now I'm going to close this issue.
@omerwe @jdblischak HI,
I successfully get the PIP using the estimator implemented in Susie. Now I want to use HESS to know if the output will be different from the previous result. However, when I add the arg --hess, there is an error: _AttributeError: module 'networkx' has no attribute 'from_numpymatrix'. There is the completed log:
And this is my code
I try to run both in polyfun and polyfun-lock env, but the error has not been resolved.I have investigated about this, and I guess it might be because the _from_numpymatrix function has been deprecated in the newer versions of networkx. I attempted to use the following in finemapper.py line 656:
to replace:
Fortunately, this worked. However, I think this fix needs your confirmation. Please let me know if this is correct.
I am looking forward to your reply!