-
-
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
Filtering of Tables with datetime MaskedColumns now produces TypeError #9374
Comments
@taldcroft - I don't see where More minimal example:
|
p.s. @talister - the above said, I would agree with @taldcroft that it is nicer to work with |
@mhvk - I reproduce the original problem on master. It maybe a numpy version issue? Your minimal example fails for me on numpy 1.17.2. |
Starting from the minimal example and using the post #8904 version and the pre- version:
|
Hmm, that's weird! It now fails for me too... I must have done something silly before. |
Hmm, this seems a numpy problem that was fixed for |
Yikes, there is some inconsistency going on in trying to reproduce examples; at some points, a |
OK, I'm almost going crazy, given this:
But there is a minute difference:
The latter is wrong - should be |
See numpy/numpy#14727 |
I tried making a |
Yes, it would need to be the |
BTW this is fixed upstream now (numpy 1.24) and the codeblocks in #9374 (comment) work just fine now. |
Thanks, good to cross-check! Let's just close the issue, since our minimum numpy version will be 1.24 soon enough... |
Description
Filtering of
Table
s withMaskedColumn
s to produce a "row mask" which can then be used to produce a subset of theTable
used to work in 3.2.1 but no longer works in 3.2.2Expected behavior
A smaller subset of the
Table
should be producedActual behavior
Produces a
TypeError: Cannot set fill value of string with array of dtype bool
as per attached stack trace:table_filtering_stack_trace.txt
Steps to Reproduce
This is using a
Table
produced byastroquery.jplhorizons
but I have no reason to believe it's specific to that code as that just returns aTable
.Issue seems to be with the
datetime
column, filtering on other columns withdtype=str1
ordtype=float64
seems to work:System Details
The text was updated successfully, but these errors were encountered: