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

Vector interpolation #4349

Closed
Durman opened this issue Sep 13, 2021 · 3 comments
Closed

Vector interpolation #4349

Durman opened this issue Sep 13, 2021 · 3 comments

Comments

@Durman
Copy link
Collaborator

Durman commented Sep 13, 2021

Problem statement

untitled1.zip
2021-09-13_13-14-50

sverchok.utils.geom:283 : list indices must be integers or slices, not tuple
@Durman Durman added this to the Sverchok v.1.0 milestone Sep 13, 2021
@Durman
Copy link
Collaborator Author

Durman commented Sep 13, 2021

Breaking commit c6a2b21

@zeffii
Copy link
Collaborator

zeffii commented Sep 13, 2021

that's weird.

-    t_r = t_in[:, np.newaxis] - tx
+    t_r = np.column_stack((t_in, t_in, t_in)) - tx

@zeffii
Copy link
Collaborator

zeffii commented Sep 13, 2021

looks like t_in isn't an np.array , so problem starts here

- out = spline.eval(t_corr)
+ out = spline.eval(np.array(t_corr))

the make_range outputs .tolist()

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

2 participants