issue_comments
1 row where author_association = "NONE" and issue = 673504545 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- uint32 variable in zarr, but float64 when loading with xarray · 1 ✖
| id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 822300379 | https://github.com/pydata/xarray/issues/4311#issuecomment-822300379 | https://api.github.com/repos/pydata/xarray/issues/4311 | MDEyOklzc3VlQ29tbWVudDgyMjMwMDM3OQ== | ludwigVonKoopa 49512274 | 2021-04-19T08:59:27Z | 2021-04-19T08:59:27Z | NONE | Problem found. Another example with more minimalistic code : ```python zname = '/tmp/test.zarr' zh = zarr.open(zname, "w") data = np.ones(10, dtype=np.uint32) za = zh.array("example", data) za.attrs["_ARRAY_DIMENSIONS"] = ["obs"] # or won't be read by xarray print("zarr : ", za.dtype, za[:]) ds = xr.open_zarr(zname)
print("xarray : ", ds.example.dtype, ds.example.values)
After investigations, i found that you have to explicitly pass ```python zname = '/tmp/test.zarr' zh = zarr.open(zname, "w") data = np.ones(10, dtype=np.uint32) za = zh.array("example", data, fill_value=None) # <-- default fill_value=0 za.attrs["_ARRAY_DIMENSIONS"] = ["obs"] print("zarr : ", za.dtype, za[:]) ds = xr.open_zarr(zname)
print("xarray : ", ds.example.dtype, ds.example.values)
|
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
uint32 variable in zarr, but float64 when loading with xarray 673504545 |
Advanced export
JSON shape: default, array, newline-delimited, object
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]);
user 1