home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1204310218

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/6813#issuecomment-1204310218 https://api.github.com/repos/pydata/xarray/issues/6813 1204310218 IC_kwDOAMm_X85HyFDK 6042212 2022-08-03T18:10:57Z 2022-08-03T18:10:57Z CONTRIBUTOR

Yes, it is reasonable to always seek(0) or to copy the file. I am not certain why/where xarray is caching the open file, though - I would have thought that a new file instance is made for each open_dataset(). I am not certain whether seeking/reading from the same file in multiple places might have unforeseen consequences, such as when doing open_dataset in multiple threads.

I am mildly against subclassing from RawIOBase, since some file-likes might choose to implement text mode right in the class (as opposed to a text wrapper layered on top). Pretty surprised that it doesn't have read()/write(), though, since all the derived classes do.

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