home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1379504132

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/7403#issuecomment-1379504132 https://api.github.com/repos/pydata/xarray/issues/7403 1379504132 IC_kwDOAMm_X85SOZAE 39069044 2023-01-11T21:26:10Z 2023-01-11T21:26:10Z CONTRIBUTOR

Personally, I'll make the argument that we should switch (carefully) from -w to w for the default case.

This makes sense in principal for consistency with other i/o methods, but I think could go very wrong in practice, especially for inexperienced users.

For example, a misplaced command of ds.to_zarr("gs://bucket_name") with default mode="w" overwrites a user's entire bucket, and same thing for local storage. to_netcdf doesn't have the capability to rm -r a directory, so I would argue to_zarr(mode="w") is much more dangerous.

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