issue_comments
2 rows where author_association = "MEMBER", issue = 1395478084 and user = 5635139 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- More informative error for passing a list to dataset.transpose · 2 ✖
| id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1267369675 | https://github.com/pydata/xarray/pull/7120#issuecomment-1267369675 | https://api.github.com/repos/pydata/xarray/issues/7120 | IC_kwDOAMm_X85LiobL | max-sixty 5635139 | 2022-10-04T18:07:55Z | 2022-10-04T18:07:55Z | MEMBER | Thanks a lot @patrick-naylor ! |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
More informative error for passing a list to dataset.transpose 1395478084 | |
| 1266523363 | https://github.com/pydata/xarray/pull/7120#issuecomment-1266523363 | https://api.github.com/repos/pydata/xarray/issues/7120 | IC_kwDOAMm_X85LfZzj | max-sixty 5635139 | 2022-10-04T07:30:20Z | 2022-10-04T07:30:20Z | MEMBER | Here's a fix of the type checker and a small suggestion (feel free to accept or reject!) ```diff commit 5dad26e19f1fb22e9a31854bac9471c5e1bec43c Author: Maximilian Roos m@maxroos.com Date: Tue Oct 4 00:26:48 2022 -0700
diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py
index ff54bd84..a3f26d26 100644
--- a/xarray/core/dataset.py
+++ b/xarray/core/dataset.py
@@ -5405,7 +5405,7 @@ def transpose(
if (len(dims) > 0) and (isinstance(dims[0], list)):
list_fix = [f"'{x}'" if isinstance(x, str) else f"{x}" for x in dims[0]]
raise TypeError(
- f'transpose requires dims to be passed as multiple arguments. Expected "{", ".join(list_fix)}". Received "{dims[0]}" instead'
+ f'transpose requires dims to be passed as multiple arguments. Expected
diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index 6ac5ed06..8acd3798 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -6809,7 +6809,7 @@ def test_string_keys_typing() -> None: ds.assign(variables=mapping) -def test_traspose_error() -> None:
+def test_transpose_error() -> None:
# Transpose dataset with list as argument
# Should raise error
ds = xr.Dataset({"foo": (("x", "y"), [[21]]), "bar": (("x", "y"), [[12]])})
@@ -6817,7 +6817,7 @@ def test_traspose_error() -> None:
with pytest.raises(
TypeError,
match=re.escape(
- "transpose requires dims to be passed as multiple arguments. Expected \"'y', 'x'\". Received \"['y', 'x']\" instead"
+ "transpose requires dims to be passed as multiple arguments. Expected ``` |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
More informative error for passing a list to dataset.transpose 1395478084 |
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