-
Notifications
You must be signed in to change notification settings - Fork 75
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
Introduce method to convert a simulation array's dtype #788
base: master
Are you sure you want to change the base?
Conversation
Make KDTree construction automatically change dtypes if needed (and warn appropriately)
Thanks a lot @apontzen, this almost works. I can now run the KD tree (although I am not seeing the warning about implicit conversion). Could it be because you are doing some type conversion during array creation? My mass array that used to be Also, this creates a new issue when connecting arrays across families, e.g.
|
I don't think this snippet shows it is reading it as a different dtype, just that it is being converted to that dtype when the kdtree gets built. (Please avoid snapshots in favour of pasting text btw) But that's a good point about what then happens when other bits of a family array get loaded. This is a good argument for the more technically complex, but more sensible, solution of just increasing the number of template parameters. I will give it some more thought, to see if there is a quicker fix. If not it might just have to wait until someone has time to do the proper solution. |
Make KDTree construction automatically change dtypes if needed (and warn appropriately)