🔍 Before submitting the issue
🐞 Description of the bug
Quantity casting of numpy int and floats are not supported. Is this expected?
📝 Steps to reproduce
ansys.units.Quantity(value=np.int64(5.0), units="kg")
Traceback (most recent call last):
File "", line 1, in
File "d:\PyFluent_Dev.venv\Lib\site-packages\ansys\units\quantity.py", line 248, in init
min_value = value if isinstance(value, (int, float)) else min(value)
^^^^^^^^^^
TypeError: 'numpy.int64' object is not iterable
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
27R1
🐍 Which Python version are you using?
3.12
📦 Installed packages
🔍 Before submitting the issue
🐞 Description of the bug
Quantity casting of numpy int and floats are not supported. Is this expected?
📝 Steps to reproduce
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
27R1
🐍 Which Python version are you using?
3.12
📦 Installed packages
.