uw-ipd / tmol

TMol
Apache License 2.0
30 stars 3 forks source link

version 2.0.0 of numpy privatizes numpy.lib.function_base #303

Closed aleaverfay closed 1 month ago

aleaverfay commented 1 month ago

The newest numpy release in June breaks our usage of "vectorize"

tmol/tests/score/hbond/potentials/test_potentials.py:8: in <module>
    from tmol.utility.args import _signature
tmol/utility/args.py:81: in <module>
    @_signature.register(numpy.lib.function_base.vectorize)
../micromamba/lib/python3.11/site-packages/numpy/lib/__init__.py:77: in __getattr__
    raise AttributeError(
E   AttributeError: numpy.lib.function_base is now private. If you are using a public function, it should be available in the main numpy namespace, otherwise check the NumPy 2.0 migration guide.
fdimaio commented 1 month ago

I think that block is unused anyway?