home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 868976909 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • shoyer 2
  • pont-us 1

author_association 2

  • MEMBER 2
  • NONE 1

issue 1

  • xarray can't append to Zarrs with byte-string variables · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
828630825 https://github.com/pydata/xarray/issues/5224#issuecomment-828630825 https://api.github.com/repos/pydata/xarray/issues/5224 MDEyOklzc3VlQ29tbWVudDgyODYzMDgyNQ== shoyer 1217238 2021-04-28T17:15:43Z 2021-04-28T17:15:43Z MEMBER

Thanks. Marking this as a bug.

On Wed, Apr 28, 2021 at 2:14 AM Pontus Lurcock @.***> wrote:

Could you kindly share the Python traceback from the error message?

Sorry, that was remiss of me. Here's the output from the test script above, including the traceback.

$ python test_append_bytes.py Creating |U1 Zarr... Appending to |U1 Zarr with Zarr library... Appending to |U1 Zarr with xarray... Creating |S1 Zarr... Appending to |S1 Zarr with Zarr library... Appending to |S1 Zarr with xarray... Traceback (most recent call last): File "/home/pont/test_append_bytes.py", line 21, in <module> test_append("|S1", "test-s.zarr") File "/home/pont/test_append_bytes.py", line 18, in test_append ds_to_append.to_zarr(zarr_path, mode="a") File "/home/pont/loc/repos/xarray/xarray/core/dataset.py", line 1877, in to_zarr return to_zarr( File "/home/pont/loc/repos/xarray/xarray/backends/api.py", line 1414, in to_zarr _validate_datatypes_for_zarr_append(dataset) File "/home/pont/loc/repos/xarray/xarray/backends/api.py", line 1261, in _validate_datatypes_for_zarr_append check_dtype(k) File "/home/pont/loc/repos/xarray/xarray/backends/api.py", line 1252, in check_dtype raise ValueError( ValueError: Invalid dtype for data variable: <xarray.DataArray 'x' ()> array(b'', dtype='|S1') dtype must be a subtype of number, datetime, bool, a fixed sized string, a fixed size unicode string or an object

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/issues/5224#issuecomment-828294723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJJFVS4C5YLW3425WOVFRDTK7GYTANCNFSM43VHKW3A .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xarray can't append to Zarrs with byte-string variables 868976909
828294723 https://github.com/pydata/xarray/issues/5224#issuecomment-828294723 https://api.github.com/repos/pydata/xarray/issues/5224 MDEyOklzc3VlQ29tbWVudDgyODI5NDcyMw== pont-us 9010180 2021-04-28T09:14:34Z 2021-04-28T09:14:34Z NONE

Could you kindly share the Python traceback from the error message?

Sorry, that was remiss of me. Here's the output from the test script above, including the traceback.

$ python test_append_bytes.py Creating |U1 Zarr... Appending to |U1 Zarr with Zarr library... Appending to |U1 Zarr with xarray... Creating |S1 Zarr... Appending to |S1 Zarr with Zarr library... Appending to |S1 Zarr with xarray... Traceback (most recent call last): File "/home/pont/test_append_bytes.py", line 21, in <module> test_append("|S1", "test-s.zarr") File "/home/pont/test_append_bytes.py", line 18, in test_append ds_to_append.to_zarr(zarr_path, mode="a") File "/home/pont/loc/repos/xarray/xarray/core/dataset.py", line 1877, in to_zarr return to_zarr( File "/home/pont/loc/repos/xarray/xarray/backends/api.py", line 1414, in to_zarr _validate_datatypes_for_zarr_append(dataset) File "/home/pont/loc/repos/xarray/xarray/backends/api.py", line 1261, in _validate_datatypes_for_zarr_append check_dtype(k) File "/home/pont/loc/repos/xarray/xarray/backends/api.py", line 1252, in check_dtype raise ValueError( ValueError: Invalid dtype for data variable: <xarray.DataArray 'x' ()> array(b'', dtype='|S1') dtype must be a subtype of number, datetime, bool, a fixed sized string, a fixed size unicode string or an object

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xarray can't append to Zarrs with byte-string variables 868976909
827709761 https://github.com/pydata/xarray/issues/5224#issuecomment-827709761 https://api.github.com/repos/pydata/xarray/issues/5224 MDEyOklzc3VlQ29tbWVudDgyNzcwOTc2MQ== shoyer 1217238 2021-04-27T15:42:50Z 2021-04-27T15:42:50Z MEMBER

Could you kindly share the Python traceback from the error message?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xarray can't append to Zarrs with byte-string variables 868976909

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 481.514ms · About: xarray-datasette