uw-ipd / tmol

TMol
Apache License 2.0
31 stars 3 forks source link

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

Closed aleaverfay closed 3 months ago

aleaverfay commented 4 months 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 4 months ago

I think that block is unused anyway?