home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 246497484

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/1001#issuecomment-246497484 https://api.github.com/repos/pydata/xarray/issues/1001 246497484 MDEyOklzc3VlQ29tbWVudDI0NjQ5NzQ4NA== 1217238 2016-09-12T21:19:59Z 2016-09-12T21:19:59Z MEMBER

When you use a with block with an xarray object, it closes any associated netCDF file when you leave the block. When you type dataset.mean(dim='round') the file is already closed.

For interactive use, it's usually preferable to just write dataset = xarray.open_dataset('snellman.nc') and close it explicitly later when/if desired.

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