Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting float value to integer in Numpy #4333

Closed
3 tasks done
Durman opened this issue Sep 9, 2021 · 0 comments
Closed
3 tasks done

Casting float value to integer in Numpy #4333

Durman opened this issue Sep 9, 2021 · 0 comments

Comments

@Durman
Copy link
Collaborator

Durman commented Sep 9, 2021

Problem statement

In Blender 2.92 there was no errors. The source of the problem is changes in NumPy library.
2021-09-09_15-19-28

# NumPy v1.17.5
>>> numpy.linspace(0.1, 0.1, 2.5)
array([0.1, 0.1])

# NumPy v1.19.5
>>> numpy.linspace(0.1, 0.1, 2.5)
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\site-packages\numpy\core\function_base.py", line 113, in linspace
    num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer

The number range node is not the only node to be suffered I guess.

  • Number range
  • Beveal a curve Mesh
  • Evaluate Curve
@Durman Durman added the bug 🐛 label Sep 9, 2021
@Durman Durman added this to the Sverchok v.1.0 milestone Sep 9, 2021
@Durman Durman closed this as completed in c60acf2 Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant