Repository navigation
Table indexing should not affect Mixin classes except through info - #4222
Conversation
|
With #4075 in place, it turns out to be reasonably trivial to remove the index-related cruft in |
58c4ff2 to
7a50abc
Compare
|
I rebased now that #4075 is merged, and this PR can be seen much more simply. Ideally, this would still go in 1.10; I'm labeling it as a bug, though it is more of a minor design flaw. |
|
@taldcroft - could you have a quick look at whether this is OK from the |
|
@mhvk - will do, hopefully tomorrow. |
|
@mhvk - this looks fine. The original implementation was intended to allow for propagating the index when a single column is sliced as opposed to the entire table. However that functionality is not tested (apparently) nor in the documentation. I agree that enforcing separation of concerns for mixins is a higher priority, and I can't think of a strong use case for needing the index on an individual sliced column. |
|
Does this have a performance impact on Quantity |
The addition introduced in #3915 should have made |
|
Yes, I noticed the I'm fine with merging this if you are happy with it. |
|
@astrofrog @embray - There is a question about getting this into 1.1. I would not classify this as a bug but since this change only fixes a performance regression from the user perspective. In theory we can put this into the 1.1.1 release, but 1.1 would be good. |
|
@taldcroft - yes, I think this is good to go as is; only simplifications to the code! |
|
Am merging this, since @taldcroft was OK with it. @astrofrog - if it is really unhandy to get this in 1.1.0 still, then just change the milestone. |
Table indexing should not affect Mixin classes except through info
Table indexing should not affect Mixin classes except through info
|
backported to v1.1.x in c5ece2d |
|
@embray - this is actually a little different, since I want to avoid, e.g., a |
#3915 introduced a very nice indexing system to
Table, but as part of that__getitem__is being changed in indentical ways inQuantityandTime. Separation of concerns suggests this should be factored out and done explicitly inTableitself, or (somehow) made part of theinfoclass.p.s. Noticed this because it causes a merge conflict for my shape-changing PR #4123. Raising this partially as a reminder to myself, partially as a general call-out to try hard to avoid creating tangled messes.