home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 544967109

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/3427#issuecomment-544967109 https://api.github.com/repos/pydata/xarray/issues/3427 544967109 MDEyOklzc3VlQ29tbWVudDU0NDk2NzEwOQ== 6628425 2019-10-22T13:40:10Z 2019-10-22T13:40:10Z MEMBER

Hmm...this feels like it may be a cftime bug. In version 1.0.3.4 the following succeeds without an error: ``` In [1]: import cftime

In [2]: d = cftime.DatetimeProlepticGregorian(1, 1, 1)

In [3]: cftime.date2num(d, 'days since 0001-01-01', 'proleptic_gregorian') Out[3]: 0.0 However, with 1.0.4, the following occurs: In [3]: cftime.date2num(d, 'days since 0001-01-01', 'proleptic_gregorian')


AttributeError Traceback (most recent call last) <ipython-input-3-5b0bfcafe058> in <module> ----> 1 cftime.date2num(d, 'days since 0001-01-01', 'proleptic_gregorian')

cftime/_cftime.pyx in cftime._cftime.date2num()

AttributeError: 'cftime._cftime.DatetimeProlepticGregorian' object has no attribute 'tzinfo' ``` I filed an issue upstream: https://github.com/Unidata/cftime/issues/126.

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