home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1377451550

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/7298#issuecomment-1377451550 https://api.github.com/repos/pydata/xarray/issues/7298 1377451550 IC_kwDOAMm_X85SGj4e 14808389 2023-01-10T15:33:20Z 2023-01-10T15:33:20Z MEMBER

you can reproduce this error even without going through the html repr: repr(time_objs[:0]) and time_objs[:0].calendar raise the same error (but with a much shorter traceback).

To fix that, I wonder if we should either return None (since we can't infer the calendar from an empty array) or somehow cache the calendar (and all other dynamically inferred properties, if there are others) on creation / modification of the CFTimeIndex object.

cc @spencerkclark

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