-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
BUG: indexing a QTable with a Quantity column doesn't work as expected #16036
Comments
Note that for non-scalar input, the error is different,
|
Actually, the cause is easy (though maybe a nice fix less so): the astropy/astropy/table/index.py Lines 93 to 96 in caf9a1a
If I change The scalar still does not work, but can also be made to work by changing astropy/astropy/table/index.py Line 852 in caf9a1a
to
(with a For an implementation, possibly easiest is not to pass in |
I think it's feasible but it isn't as easy as I first thought. I'm game to try it out again if no objection is raised ! |
Sure! |
fails with
In contrast, the following works
Using a
Table
instead of aQTable
also works as expectedI'm not 100% sure the current behaviour is actually buggy: this is a matter of intent.
This was first discussed in #15826 where @taldcroft found that multi-indexing wouldn't work seamlessly for
Quantity
indices, as he assumed.This report is adapted from my comment #15826 (comment)_
The text was updated successfully, but these errors were encountered: