-
Notifications
You must be signed in to change notification settings - Fork 118
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
How do I keep track of data alongside my points? #34
Comments
There is currently an open pullrequest #32 that contains an example. I agree that this is a bit unwieldy, so I am planning of modifying the check which is failing for you. It should probably require at least the specified dimensionality, instead of requiring it exactly. I did not have much time to work on |
Ah cool, thanks for the pointer to the example. In the meantime, I've bodged this workaround together:
It's good enough for what I wanted to do. |
Just started looking at putting together a pull request for the fix as suggested. But in starting with a test to reproduce my issue, I found this existing code in
It looks like It looks like this just needs documenting so the newbies like me can quickly identify the easy way to do it. |
Sorry, this is a bit of a question rather than an issue. However....
I'd like to use the namedtuple example to store my points in the tree, but would also like to store some data alongside the points. Is there an easy way to do this? Can it be added to the examples?
I've tried the following:
But running this code fails:
I guess I could make my own object which 'supports indexing' but as I don't yet know how to do that it seems like a bit of a faff.
The text was updated successfully, but these errors were encountered: