issue_comments: 1210023820
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/4285#issuecomment-1210023820 | https://api.github.com/repos/pydata/xarray/issues/4285 | 1210023820 | IC_kwDOAMm_X85IH3-M | 1852447 | 2022-08-10T00:36:42Z | 2022-08-10T00:36:42Z | NONE |
It shouldn't be a subclass because it doesn't satisfy a substitution principle: Since
Oh....... I hadn't been thinking that RaggedArray is something we'd put in the general Awkward Array library. I was thinking of it only as a way to define "the subset of Awkward Arrays that xarray uses," which would live in xarray. I don't want to introduce another level of type-specificity to the system, since that would make things harder to understand. (Imagine reading the docs and it says, "You can apply this function to ak.Array, but not to ak.RaggedArray." Or "this is an ak.Array that happens to be ragged, but not a ak.RaggedArray.") So let me rethink your original idea of adding If that point is negotiable, I could introduce an
Or maybe the best way to present it is with a Anyway, you can see why I'm loath to add a property to ak.Array that's just named " But if I'm providing it as an extra function, or as a trio of properties named So in the end, I just came back to where we started: xarray would own the RaggedArray wrapper. Or it could be a third package, as awkward-pandas is to awkward and pandas.
No, I initialized it incorrectly: it should have started as
and then recurse from there. My previous example also had the wrong output, but I didn't count square brackets carefully enough to have caught it. (By the way, not copying the context is why it's called "lateral"; if a copied dict is needed, it's "depth_context". I just went back and checked: yes, they're being handled appropriately.) I fixed the code that I wrote in the comments above for posterity. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
667864088 |