home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 895162608

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/5686#issuecomment-895162608 https://api.github.com/repos/pydata/xarray/issues/5686 895162608 IC_kwDOAMm_X841Wxjw 6628425 2021-08-09T11:57:39Z 2021-08-09T11:57:39Z MEMBER

A colleague suggested it might be some sort of pickling issue, passing the generated object back to the main thread, but it was just speculation and I had no idea how to test that.

Yes, it must be something of that sort. Here's perhaps an even more minimal example: ```

import cftime; import distributed header, frames = distributed.protocol.serialize(cftime.DatetimeNoLeap(2000, 1, 1)) distributed.protocol.deserialize(header, frames) cftime.datetime(2000, 1, 1, 0, 0, 0, 0, calendar='noleap', has_year_zero=True) Further, removing `distributed` from the mix, we can show this just using `pickle`: import pickle serialized = pickle.dumps(cftime.DatetimeNoLeap(2000, 1, 1)) deserialized = pickle.loads(serialized) deserialized cftime.datetime(2000, 1, 1, 0, 0, 0, 0, calendar='noleap', has_year_zero=True) ``` I'll make an issue in cftime.

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