numpy.float deprecation error
Error
Traceback (most recent call last):
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn/lib/python3.9/cProfile.py", line 190, in <module>
main()
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn/lib/python3.9/cProfile.py", line 179, in main
runctx(code, globs, None, options.outfile, options.sort)
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn/lib/python3.9/cProfile.py", line 19, in runctx
return _pyprofile._Utils(Profile).runctx(statement, globals, locals,
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn/lib/python3.9/profile.py", line 62, in runctx
prof.runctx(statement, globals, locals)
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn/lib/python3.9/cProfile.py", line 100, in runctx
exec(cmd, globals, locals)
File "/home/vinaya.valsan/virtualenvs/rpe-rift-version-test2/bin/integrate_likelihood_extrinsic_batchmode", line 52, in <module>
import RIFT.integrators.mcsampler as mcsampler
File "/home/vinaya.valsan/virtualenvs/rpe-rift-version-test2/lib/python3.9/site-packages/RIFT/integrators/mcsampler.py", line 781, in <module>
uniform_samp_vector = numpy.vectorize(uniform_samp,otypes=[numpy.float])
File "/home/vinaya.valsan/virtualenvs/rpe-rift-version-test2/lib/python3.9/site-packages/numpy/__init__.py", line 305, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
either use RIFT==0.0.15.9rc5
or numpy<1.24.0