Repository navigation
Conversation
|
Hi there @eteq 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog and making sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃. I noticed the following issues with this pull request:
Would it be possible to fix these? Thanks! If there are any issues with this message, please report them here. |
| grped = t.group_by('index') | ||
| assert np.all(grped['index'] == ['a', 'b', 'b', 'c']) | ||
| assert np.all(grped['quantity'] == [0, 1, 3, 2]*u.m) | ||
| assert np.all(grped['skycoord'] == [0, 1, 3, 2]*u.deg) |
There was a problem hiding this comment.
you need to compare grped['skycoord'].ra here.
|
I'll let @taldcroft look into this in more detail -- I've never really looked into grouping -- but did see an obvious problem with a test. |
|
@eteq - in principle there should not be any problem with mixin columns as long as they are not used as a key column. That is the simple answer. The more nuanced answer is that you can use mixins for key column(s) as long as the output of By "kind of OK" I mean this: So it actually works, but at the expense of creating individual Interestingly, SkyCoord does not fail here and [EDIT] - Python 3 is just better and gives the expected exception |
|
Takeaway: you can open up functionality with a simple PR that just checks that no specified key columns are non-Quantity mixins. The relevant check that a This would allow e.g. OR, for the simplest of all (requiring minimal additional testing) |
|
This was closed without warning by the bot so re-opening |
|
Hi humans 👋 - this pull request hasn't had any new commits for approximately 6 months. I plan to close this in a month if the pull request doesn't have any new commits by then. In lieu of a stalled pull request, please consider closing this and open an issue instead if a reminder is needed to revisit in the future. Maintainers may also choose to add If this PR still needs to be reviewed, as an author, you can rebase it to reset the clock. You may also consider sending a reminder e-mail about it to the astropy-dev mailing list. If you believe I commented on this pull request incorrectly, please report this here. |
|
@eteq - I would really love to use this right now :) Any plan to come back to this PR? |
|
I just started taking a look at this. Maybe I can knock off a quick PR. |
|
(Actually the my immediate need for this is worked around, but nevertheless, your suggestion above worked perfectly well for the use case I had with mixin columns (that are not being used as keys).) |
@taldcroft or @mhvk can correct me (and immediately close this PR) if I'm crazy here (or if Travis reveals it's failing), but it looks to me like
group_bynow works on all the relevant mixin classes I see. I wonder if this got fixed implicitly somewhere and theNotImplementedErroris just now wrong?