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
Pass arbitrary data to pre/body/post #8
Comments
You can pass objects and functions into the scalar type. The name scalar was chosen because it wasn't an array, so I can understand the confusion. Take a look at ndarray-warp: |
Ah, great. I can submit a PR with this clarification. Thought this might be the case but figured it was worth clarifying whether it was more than an accidental if so. |
cc: @thibauts since it seemed like you might have been working with a similar use-case… |
I had exactly the same question. Might be worthwhile to put the information in the relevant README section so people don't miss it, or alias Edit: well, looks like that's exactly what you suggested :) |
It's possible to pass a scalar to the body function, but is there any way of passing arbitrary data to the functions? (arg type=
object
?) I've encountered a couple cases where this would be convenient and, I believe, valid:Long story short, here are the two possibilities:
object
type for passing arbitrary stuff that's usefulThe text was updated successfully, but these errors were encountered: