Skip to content

Bug on numpy version requirement

Hi. According to the requirements list, numpy>=1.17.2 but when running the example bash script one gets the following error: File "/home/pablo/.local/bin/fit_elines.py", line 60, in <module> fit_elines(spec_file=pa.spec_file, config_file=pa.config_file, mask_file=pa.mask_file, File "/home/pablo/.local/lib/python3.10/site-packages/pyFIT3D/common/gas_tools.py", line 1506, in fit_elines cf = ConfigEmissionModel(config_file) File "/home/pablo/.local/lib/python3.10/site-packages/pyFIT3D/common/gas_tools.py", line 132, in __init__ self._load() File "/home/pablo/.local/lib/python3.10/site-packages/pyFIT3D/common/gas_tools.py", line 259, in _load ("guess", np.float), File "/home/pablo/.local/lib/python3.10/site-packages/numpy/__init__.py", line 305, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'. np.floatwas a deprecated alias for the builtinfloat. To avoid this error in existing code, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. The solution would be to restrict the numpy version to <1.20 or replace np.float by the built-in function float.