Skip to content
Discussion options

You must be logged in to vote

I think calling the point evaluation method in a loop is going to be slow. Doing a single call will speed things up. I was able to get something similar to work like so:

zeros = np.zeros_like(line)
vz_vs_x = v(list(np.column_stack((line, zeros))))
vz_vs_y = v(list(np.column_stack((zeros, line))))

Can you try and see if that helps?

I'm not sure why, but I needed to convert the 2D numpy array to a list first; I got an error message when I just passed the array.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cpraveen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants