You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running tangos write BH_mass BH_mdot_histogram --for h102054gs --type bh
I get the following exception. It looks like a conversion from float to int is needed for the last argument to np.linspace(). This is with numpy version 1.20.2.
Uncaught exception during property calculation <tangos.properties.pynbody.BH.BHAccHistogram object at 0x15552e88fb80> applied to <BH 'h102054gs/h102054gs.004096/BH_238728098' | NDM=0 Nstar=0 Ngas=0> Traceback (most recent call last): File "/home/u14266/.local/lib/python3.8/site-packages/tangos-1.1.1-py3.8.egg/tangos/tools/property_writer.py", line 382, in _get_property_value result = property_calculator.calculate(snapshot_data, db_data) File "/home/u14266/.local/lib/python3.8/site-packages/tangos-1.1.1-py3.8.egg/tangos/properties/pynbody/BH.py", line 125, in calculate t_grid = np.linspace(0, grid_tmax_Gyr, nbins) File "<__array_function__ internals>", line 5, in linspace File "/home/u14266/.local/lib/python3.8/site-packages/numpy/core/function_base.py", line 120, in linspace num = operator.index(num) TypeError: 'float' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered:
When running
tangos write BH_mass BH_mdot_histogram --for h102054gs --type bh
I get the following exception. It looks like a conversion from float to int is needed for the last argument to np.linspace(). This is with numpy version 1.20.2.
Uncaught exception during property calculation <tangos.properties.pynbody.BH.BHAccHistogram object at 0x15552e88fb80> applied to <BH 'h102054gs/h102054gs.004096/BH_238728098' | NDM=0 Nstar=0 Ngas=0> Traceback (most recent call last): File "/home/u14266/.local/lib/python3.8/site-packages/tangos-1.1.1-py3.8.egg/tangos/tools/property_writer.py", line 382, in _get_property_value result = property_calculator.calculate(snapshot_data, db_data) File "/home/u14266/.local/lib/python3.8/site-packages/tangos-1.1.1-py3.8.egg/tangos/properties/pynbody/BH.py", line 125, in calculate t_grid = np.linspace(0, grid_tmax_Gyr, nbins) File "<__array_function__ internals>", line 5, in linspace File "/home/u14266/.local/lib/python3.8/site-packages/numpy/core/function_base.py", line 120, in linspace num = operator.index(num) TypeError: 'float' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered: