home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 782111696

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/4927#issuecomment-782111696 https://api.github.com/repos/pydata/xarray/issues/4927 782111696 MDEyOklzc3VlQ29tbWVudDc4MjExMTY5Ng== 2448579 2021-02-19T14:32:28Z 2021-02-19T14:32:28Z MEMBER

https://github.com/pydata/xarray/blob/070d8158aab31c6a53efb36f9ea4a57dc6671e43/xarray/conventions.py#L498-L500

Looks like we treat time bounds specially. You could add a helper function to this if condition that rewrites "seconds since time_reference" to "seconds since 1970-01-01T00:00:00Z" and the rest of the decoding machinery should just work.

This approach might break round-tripping that file though. Perhaps saving encoding["units"] = "seconds since time_reference" fixes that?

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