issue_comments
16 rows where issue = 1485037066 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Expose "Coordinates" as part of Xarray's public API · 16 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
1464927490 | https://github.com/pydata/xarray/pull/7368#issuecomment-1464927490 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85XUQUC | headtr1ck 43316012 | 2023-03-11T14:50:02Z | 2023-03-11T14:50:24Z | COLLABORATOR |
I think thats exactly correct. The whold idea of using a TypeVar for the inputs means that all inputs must have the same type. Consider the following example: ```python class A: ... class B(A): ... class C: ... T = TypeVar("T", bound=Union[A, C]) def f(*x: T) -> T: ... f(A(), A()) # OK f(A(), B()) # OK f(C(), C()) # OK f(A(), C()) # not ok, because the common type of A and C is object ``` Also: sorry for the late reply. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1382070832 | https://github.com/pydata/xarray/pull/7368#issuecomment-1382070832 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85SYLow | benbovy 4160723 | 2023-01-13T16:13:16Z | 2023-01-13T16:13:16Z | MEMBER | Thanks for the review @shoyer. I addressed your comments. Everything seems OK except a rather annoying mypy error that I'm struggling with: The
@headtr1ck @Illviljan any idea? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1359003371 | https://github.com/pydata/xarray/pull/7368#issuecomment-1359003371 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85RAL7r | benbovy 4160723 | 2022-12-20T08:34:06Z | 2022-12-20T08:34:06Z | MEMBER | I'm wondering if instead of
One downside is that specific (mandatory?) options like Would it be useful or is it overkill? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1352874809 | https://github.com/pydata/xarray/pull/7368#issuecomment-1352874809 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85Qozs5 | benbovy 4160723 | 2022-12-15T10:42:59Z | 2022-12-15T10:42:59Z | MEMBER | OK this is now ready for review (cc @shoyer). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1352818155 | https://github.com/pydata/xarray/pull/7368#issuecomment-1352818155 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85Qol3r | benbovy 4160723 | 2022-12-15T09:59:03Z | 2022-12-15T09:59:03Z | MEMBER |
Fixed in 193dad3 (with some reasonable special case added in |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1352310432 | https://github.com/pydata/xarray/pull/7368#issuecomment-1352310432 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85Qmp6g | benbovy 4160723 | 2022-12-14T22:33:23Z | 2022-12-15T01:08:41Z | MEMBER | I did some profiling to find the cause of the decrease in performance reported in the benchmarks (dataset creation). In summary, this is explained by a Maybe there's some way to optimize that? I don't know if we can completely avoid it with the solution implemented in this PR, though. Promoting More details about the new workflow implemented in this PR when creating a new Dataset:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1349321538 | https://github.com/pydata/xarray/pull/7368#issuecomment-1349321538 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QbQNC | benbovy 4160723 | 2022-12-13T18:03:17Z | 2022-12-13T18:03:17Z | MEMBER | I think this is ready for review! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1347327518 | https://github.com/pydata/xarray/pull/7368#issuecomment-1347327518 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QTpYe | benbovy 4160723 | 2022-12-12T21:05:56Z | 2022-12-12T21:05:56Z | MEMBER | In order to skip creating default indexes when passing a The "no default index with Coordinates" behavior should be consistent Xarray-wise, i.e., for DataArray / Dataset constructors and also Sorry this PR is getting big, but hopefully this is almost ready (still a few tests to fix or to add). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1346344694 | https://github.com/pydata/xarray/pull/7368#issuecomment-1346344694 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QP5b2 | benbovy 4160723 | 2022-12-12T11:55:10Z | 2022-12-12T11:55:10Z | MEMBER |
So if we already have some coordinate data as a dict but don't want any default index, we would need to do this:
instead of this:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1346091151 | https://github.com/pydata/xarray/pull/7368#issuecomment-1346091151 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QO7iP | benbovy 4160723 | 2022-12-12T08:36:09Z | 2022-12-12T08:36:09Z | MEMBER | Thanks @shoyer, I've been thinking about similar short/long term plans although so far I haven't figured out how to implement your point 3. I'll give it another try. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1345646743 | https://github.com/pydata/xarray/pull/7368#issuecomment-1345646743 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QNPCX | shoyer 1217238 | 2022-12-11T20:17:15Z | 2022-12-11T20:17:15Z | MEMBER |
In the long term, I think we should refactor For now, it's worth noting that the current |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1345314909 | https://github.com/pydata/xarray/pull/7368#issuecomment-1345314909 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QL-Bd | benbovy 4160723 | 2022-12-10T16:59:44Z | 2022-12-10T16:59:44Z | MEMBER |
Yes I think so. I'm actually trying to merge Ideally, I'd see ```python class Coordinates:
``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1344968954 | https://github.com/pydata/xarray/pull/7368#issuecomment-1344968954 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QKpj6 | shoyer 1217238 | 2022-12-10T01:37:35Z | 2022-12-10T01:37:35Z | MEMBER | Long term, do you think it would make sense to merge together Indexes, Coordinates and IndexedCoordinates? They are sort of all containers for the same thing. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1344944917 | https://github.com/pydata/xarray/pull/7368#issuecomment-1344944917 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QKjsV | shoyer 1217238 | 2022-12-10T00:31:46Z | 2022-12-10T00:31:46Z | MEMBER |
Generally this looks great to me!
My suggestion would be:
Yes, this makes more sense to me!
Yes, I also agree! This makes more sense. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1344046801 | https://github.com/pydata/xarray/pull/7368#issuecomment-1344046801 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QHIbR | benbovy 4160723 | 2022-12-09T09:13:24Z | 2022-12-09T09:16:35Z | MEMBER | I added ```python midx = pd.MultiIndex.from_product([["a", "b"], [1, 2]], names=("one", "two")) coords = xr.IndexedCoordinates.from_pandas_multiindex(midx, "x") coords = coords.merge_coords({"y": [0, 1, 2]}) Coordinates:* x (x) object MultiIndex* one (x) object 'a' 'a' 'b' 'b'* two (x) int64 1 2 1 2* y (y) int64 0 1 2ds = xr.Dataset(coords=coords) <xarray.Dataset>Dimensions: (x: 4)Coordinates:* x (x) object MultiIndex* one (x) object 'a' 'a' 'b' 'b'* two (x) int64 1 2 1 2* y (y) int64 0 1 2Data variables:empty```
Or should we just use
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 | |
1344004727 | https://github.com/pydata/xarray/pull/7368#issuecomment-1344004727 | https://api.github.com/repos/pydata/xarray/issues/7368 | IC_kwDOAMm_X85QG-J3 | benbovy 4160723 | 2022-12-09T08:32:28Z | 2022-12-09T09:14:17Z | MEMBER |
Alternatively to an
What if the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Expose "Coordinates" as part of Xarray's public API 1485037066 |
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 3