home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1019311097

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/6174#issuecomment-1019311097 https://api.github.com/repos/pydata/xarray/issues/6174 1019311097 IC_kwDOAMm_X848wXP5 14371165 2022-01-22T17:09:30Z 2022-01-22T17:09:30Z MEMBER

Is it that difficult to get a list of groups though? I've been testing a backend engine that merges many groups into 1 dataset (dims/coords/variables renamed slightly to avoid duplicate names until they've been interpolated together) using h5py.

Getting the groups are like the first thing you have to do, the code would look something like this: ```python

f = h5py.File('foo.hdf5','w') f.name '/' list(f.keys()) [] ``` https://docs.h5py.org/en/stable/high/group.html

Sure, it can be quite tiresome to navigate the backend engines and 3rd party modules in xarray to add this. But most of them uses h5py or something quite similar at its core so it shouldn't be THAT bad.

For example one could add another method here that retrieves them in a quick and easy way: https://github.com/pydata/xarray/blob/c54123772817875678ec7ad769e6d4d6612aeb92/xarray/backends/common.py#L356-L360

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1108138101
Powered by Datasette · Queries took 0.79ms · About: xarray-datasette