-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add wrapper for eachslice
?
#25
Comments
Yes this ought to be made to work. The catch is that you don't want to simply call |
FYI, I had this problem too, and had to copy-paste https://github.com/rafaqz/DimensionalData.jl/blob/master/src/methods.jl#L84-L97 It could be good to fix all these methods in base some day so we can dispatch properly on |
Yes I tried to change NamedDims to that strategy, and the PR got lost in an argument about how to handle Julia < 1.1 most cleanly... Re changing Base, I tried that too: JuliaLang/julia#32310 (comment) |
Hmm no response in the Base PR. I had this too, ages ago: https://github.com/JuliaLang/Statistics.jl/issues/11 But decided not to implement it yet as I wasn't sure I needed that many changes, and I don't in the end, I'm just dispatching on the array type instead of the dims type (I wanted to free up array inheritance for other things - ie dims are a trait, but its too hard).
I just didn't provide |
If someone was very energetic, I wonder what chance a PR adding a step via some |
That's a really clean way of doing it. |
I'm not sure what the best approach for this is, but it'd be nice if you could do:
rather than
The text was updated successfully, but these errors were encountered: