home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

440 rows where user = 43316012 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue >30

  • Add typing to plot methods 19
  • Fixed type errors in `mypy` GitHub Action 11
  • list available backends and basic descriptors 10
  • Bump minimum numpy version to 1.20 9
  • polyval: Use Horner's algorithm + support chunked inputs 8
  • Update DataArray.rename + docu 8
  • 🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 8
  • Lazy Imports 7
  • xarray 2022.10.0 much slower then 2022.6.0 7
  • use numpys SupportsDtype 7
  • dimensions: type as `str | Iterable[Hashable]`? 6
  • Fix `DataArrayRolling.__iter__` with `center=True` 6
  • New deep copy behavior in 2022.9.0 causes maximum recursion error 6
  • Typing of abstract base classes 5
  • DOC: Added examples to docstrings of DataArray methods (#7123) 5
  • Dataset.copy(deep=True) does not deepcopy .attrs 4
  • Long import time 4
  • Add Ellipsis typehint to reductions 4
  • Optimize some copying 4
  • DataArray.transpose with transpose_coords=True does not change coords order 4
  • Fix words to make terminology consistent in docs 4
  • Make subclassing easier? 3
  • Fix issue tuple as dimension 3
  • Typing for open_dataset/array/mfdataset and to_netcdf/zarr 3
  • CFTime support for polyval 3
  • Allow all interp methods in typing 3
  • some private imports broken on main 3
  • What should `Dataset.count` return for missing dims? 3
  • xarray 2022.6.0 doesn't work well with numpy 1.20 3
  • Fix numpy 1.20 incompatibility 3
  • …

user 1

  • headtr1ck · 440 ✖

author_association 1

  • COLLABORATOR 440
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1578777785 https://github.com/pydata/xarray/pull/7862#issuecomment-1578777785 https://api.github.com/repos/pydata/xarray/issues/7862 IC_kwDOAMm_X85eGjy5 headtr1ck 43316012 2023-06-06T13:31:34Z 2023-06-06T13:31:34Z COLLABORATOR

If you want you can leave a comment But the mypy CI should fail on unused ignores, so we will notice :)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  CF encoding should preserve vlen dtype for empty arrays 1720045908
1577364529 https://github.com/pydata/xarray/pull/7891#issuecomment-1577364529 https://api.github.com/repos/pydata/xarray/issues/7891 IC_kwDOAMm_X85eBKwx headtr1ck 43316012 2023-06-05T19:35:33Z 2023-06-05T19:35:33Z COLLABORATOR

You could use DataArray.round to round to significant decimals.

Better to use a tolerance in the assterion testing.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add errors option to curvefit 1740268634
1574278204 https://github.com/pydata/xarray/pull/7862#issuecomment-1574278204 https://api.github.com/repos/pydata/xarray/issues/7862 IC_kwDOAMm_X85d1ZQ8 headtr1ck 43316012 2023-06-02T20:27:46Z 2023-06-02T20:28:29Z COLLABORATOR

This seems to be a numpy issue, mypy thinks that you cannot call np.dtype like you do.

Might be worth an issue over at numpy with the example from the test.

For now we can simply ignore this error.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  CF encoding should preserve vlen dtype for empty arrays 1720045908
1572359754 https://github.com/pydata/xarray/pull/7880#issuecomment-1572359754 https://api.github.com/repos/pydata/xarray/issues/7880 IC_kwDOAMm_X85duE5K headtr1ck 43316012 2023-06-01T16:23:45Z 2023-06-01T16:23:45Z COLLABORATOR

Maybe you can add a test that creates a cachingFilemanager object, then deletes it, then run gc.collect() and check somehow if it works? But no idea how pytest interferes with this or how you can ensure that there are no references to the module anymore?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  don't use `CacheFileManager.__del__` on interpreter shutdown 1730664352
1572259965 https://github.com/pydata/xarray/pull/7670#issuecomment-1572259965 https://api.github.com/repos/pydata/xarray/issues/7670 IC_kwDOAMm_X85dtsh9 headtr1ck 43316012 2023-06-01T15:22:33Z 2023-06-01T15:22:33Z COLLABORATOR

The cfgrib notebook in the documentation is broken. I guess it's related to this PR. See: https://docs.xarray.dev/en/stable/examples/ERA5-GRIB-example.html

Same problem with https://github.com/pydata/xarray/issues/7841

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Delete built-in cfgrib backend 1639732867
1567450094 https://github.com/pydata/xarray/pull/7880#issuecomment-1567450094 https://api.github.com/repos/pydata/xarray/issues/7880 IC_kwDOAMm_X85dbWPu headtr1ck 43316012 2023-05-29T19:28:21Z 2023-05-29T19:28:21Z COLLABORATOR

I think this is intended (though certainly not very easy to get right): see the second part of the warning in the __del__ documentation.

You are right, that warning is exactly what is causing the issues.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  don't use `CacheFileManager.__del__` on interpreter shutdown 1730664352
1567439206 https://github.com/pydata/xarray/pull/7880#issuecomment-1567439206 https://api.github.com/repos/pydata/xarray/issues/7880 IC_kwDOAMm_X85dbTlm headtr1ck 43316012 2023-05-29T19:09:41Z 2023-05-29T19:09:41Z COLLABORATOR

That's quite a weird bug. I would have thought that the global (or module level here) variable/function aquire should have at least one reference until after the deletion of the object. Is that a bug in pythons garbage collection?

Or does the garbage collection already start when calling del and does not wait for the completion of the __del__ method?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  don't use `CacheFileManager.__del__` on interpreter shutdown 1730664352
1561096393 https://github.com/pydata/xarray/issues/5644#issuecomment-1561096393 https://api.github.com/repos/pydata/xarray/issues/5644 IC_kwDOAMm_X85dDHDJ headtr1ck 43316012 2023-05-24T12:56:48Z 2023-05-24T12:56:48Z COLLABORATOR

You can always reach out to the creator of the original PR and comment in the PR.

But it looks like this particular PR was reaching a dead end and should be completely rewritten. But anyway the reviewers left helpful remarks on how to proceed.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `polyfit` with weights alters the DataArray in place 955043280
1554621577 https://github.com/pydata/xarray/issues/7851#issuecomment-1554621577 https://api.github.com/repos/pydata/xarray/issues/7851 IC_kwDOAMm_X85cqaSJ headtr1ck 43316012 2023-05-19T14:01:42Z 2023-05-19T14:01:42Z COLLABORATOR

I think this goes a bit against the rest of xarray which discourages in place operations.

But on the other hand, both deleting a variable and extracting a DataArray exist on their own, so why not combine it.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add pop methods 1717209758
1547169473 https://github.com/pydata/xarray/pull/7840#issuecomment-1547169473 https://api.github.com/repos/pydata/xarray/issues/7840 IC_kwDOAMm_X85cN-7B headtr1ck 43316012 2023-05-15T04:15:53Z 2023-05-15T04:15:53Z COLLABORATOR

Well that's the point, "x" is a dimension as well as a coordinate. And since dimensions are names you cannot assign anything to them. If you want you can change coordinate by dimension coordinate.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix words to make terminology consistent in docs 1707774178
1546939363 https://github.com/pydata/xarray/pull/7840#issuecomment-1546939363 https://api.github.com/repos/pydata/xarray/issues/7840 IC_kwDOAMm_X85cNGvj headtr1ck 43316012 2023-05-14T16:29:13Z 2023-05-14T16:29:13Z COLLABORATOR

I agree that there is a lot of terminology that is somewhat similar and/or overlapping.

In math you have the basis of a vector space which when plotting in a coordinate system you sometimes call coordinates or axes. Also you often use the phrase "the x-coordinate of point p is ...", So I understand why naming an axis "coordinate" might sound reasonable.

However in xarray (or numerics in general) you often deal with data that is not aligned to any axis in a given coordinate system. Consider the following example: you have a time series of points that might be scattered randomly in your coordinate system. Now you can assign to each point a x and y coordinate. In xarray you would call the dimension of the data e.g. "time". You will need two additional time series of data points for the x and y coordinates.

In xarray this would be something like that: python da = xr.DataArray( [5, 6, 7], dims="time", coords={ "x": ("time", [1, 2, 3]), "y": ("time", [9, 8, 7]), "time": [0, 1, 2] } You can see that in this example we cannot easily define a x-y coordinate system since the data points are not on a grid. But still we can assign each data point a x and y coordinate.

Now finding a naming convention that fits both, random data points and lattices that are aligned with the coordinate system is not trivial.

That's why we choose to go with the following: - dimension: name of an axis of a nd-array, this might be a "real" axis that has any real world equivalent or something as trivial as "order in which the data has been aquisited". In the example this was "time". - coordinate: auxiliary data that can be used to identify the data values. In the example this was "x" and "y". (Basically it is a short name for "coordinate variable") - dimension coordinate: a coordinate that assigns values to the dimension directly if possible. This is the case when the name of a coordinate is the same as a dimension. In the example this was "time" with the timestamps 0, 1 and 2 (probably this should be real timestamps).

Feel free to propose some changes to the documentation such that newcomers will find it easier to understand the terminology.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix words to make terminology consistent in docs 1707774178
1546029852 https://github.com/pydata/xarray/pull/7840#issuecomment-1546029852 https://api.github.com/repos/pydata/xarray/issues/7840 IC_kwDOAMm_X85cJosc headtr1ck 43316012 2023-05-12T16:57:53Z 2023-05-12T16:57:53Z COLLABORATOR

Yes exactly. A dimension is only a name for an axis.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix words to make terminology consistent in docs 1707774178
1545930547 https://github.com/pydata/xarray/pull/7840#issuecomment-1545930547 https://api.github.com/repos/pydata/xarray/issues/7840 IC_kwDOAMm_X85cJQcz headtr1ck 43316012 2023-05-12T15:32:29Z 2023-05-12T15:32:29Z COLLABORATOR

This is a bit misleading. I think the term coordinate is correct, but you can be more precise and use dimension-coordinate, see: https://docs.xarray.dev/en/stable/user-guide/data-structures.html#coordinates

Maybe we should start calling them index as well? But I think the concept of dimension-coordinates (when the coordinate has the same name as the dimension) is still relevant.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix words to make terminology consistent in docs 1707774178
1541835110 https://github.com/pydata/xarray/pull/7676#issuecomment-1541835110 https://api.github.com/repos/pydata/xarray/issues/7676 IC_kwDOAMm_X85b5olm headtr1ck 43316012 2023-05-10T09:56:52Z 2023-05-10T09:56:52Z COLLABORATOR

@Mehak-4545 are you still working on this? You need to change the style of your docstrings and examples. See other docstrings formatting for inspiration.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Updated documentation 1640453837
1540811425 https://github.com/pydata/xarray/issues/7831#issuecomment-1540811425 https://api.github.com/repos/pydata/xarray/issues/7831 IC_kwDOAMm_X85b1uqh headtr1ck 43316012 2023-05-09T19:57:48Z 2023-05-09T19:57:48Z COLLABORATOR

I don't know how we would implement that, it's probably not a good idea to special case all external backends within xarray.

Either the package is installed and then it works or it is not installed and then we don't know which backend/package is missing.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Can't open datasets with the `rasterio` engine. 1702025553
1535358946 https://github.com/pydata/xarray/issues/7816#issuecomment-1535358946 https://api.github.com/repos/pydata/xarray/issues/7816 IC_kwDOAMm_X85bg7fi headtr1ck 43316012 2023-05-04T20:18:51Z 2023-05-04T20:24:26Z COLLABORATOR

I am not sure what exactly is not working. The BACKEND_ENTRYPOINTS is not a public API and is only used for xarrays internal backends. In the documentation that you have linked it is explained on how to register your project, which is purely in the setup.cfg/pyproject.toml, no need to manipulate xarray internal objects.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Backend registration does not match docs, and is no longer specifiable in maturin pyproject toml 1695809136
1509899180 https://github.com/pydata/xarray/issues/7758#issuecomment-1509899180 https://api.github.com/repos/pydata/xarray/issues/7758 IC_kwDOAMm_X85Z_zus headtr1ck 43316012 2023-04-15T17:19:38Z 2023-04-15T17:19:38Z COLLABORATOR

Maybe I was not clear enough, sry for that. With remote file system I meant that you mount e.g. an NFS drive.

It seems that you are using a https protocol to transfer the data.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Provide a way to specify how long open_dataset tries to fetch data before timing out 1668898601
1509585164 https://github.com/pydata/xarray/issues/7754#issuecomment-1509585164 https://api.github.com/repos/pydata/xarray/issues/7754 IC_kwDOAMm_X85Z-nEM headtr1ck 43316012 2023-04-15T06:33:50Z 2023-04-15T06:33:50Z COLLABORATOR

What happens when you specify the netcdf4 engine directly? (Assuming it is a nc4 and not nc3 file).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError: did not find a match in any of xarray's currently installed IO backends ['netcdf4', 'h5netcdf', 'scipy'].  1667556281
1509537842 https://github.com/pydata/xarray/issues/7758#issuecomment-1509537842 https://api.github.com/repos/pydata/xarray/issues/7758 IC_kwDOAMm_X85Z-bgy headtr1ck 43316012 2023-04-15T05:35:50Z 2023-04-15T05:35:50Z COLLABORATOR

Which backend are you using? Is it a "real" server or simply a remote filesystem?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Provide a way to specify how long open_dataset tries to fetch data before timing out 1668898601
1508940623 https://github.com/pydata/xarray/issues/7754#issuecomment-1508940623 https://api.github.com/repos/pydata/xarray/issues/7754 IC_kwDOAMm_X85Z8JtP headtr1ck 43316012 2023-04-14T16:43:59Z 2023-04-14T16:43:59Z COLLABORATOR

The error message tells that the backends are installed and can be found by xarray.

What exactly did you try to open? A local file? If yes, can you provide the name of this file?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError: did not find a match in any of xarray's currently installed IO backends ['netcdf4', 'h5netcdf', 'scipy'].  1667556281
1506550069 https://github.com/pydata/xarray/issues/7748#issuecomment-1506550069 https://api.github.com/repos/pydata/xarray/issues/7748 IC_kwDOAMm_X85ZzCE1 headtr1ck 43316012 2023-04-13T08:20:24Z 2023-04-13T08:20:24Z COLLABORATOR

See also somewhat related discussion here https://github.com/pydata/xarray/issues/6749

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  diff('non existing dimension') does not raise exception 1664193419
1506544631 https://github.com/pydata/xarray/issues/7748#issuecomment-1506544631 https://api.github.com/repos/pydata/xarray/issues/7748 IC_kwDOAMm_X85ZzAv3 headtr1ck 43316012 2023-04-13T08:16:11Z 2023-04-13T08:16:11Z COLLABORATOR

Not sure what the correct way would be.

If you consider that d f(x) / d y = 0, maybe all zeros could be considered correct as well. The same result can be obtained if one considers that the array might be broadcast to the y-dim.

Also we have to check that happens in Datasets if one of the variables does not contain this dimension, do we raise an error as well?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  diff('non existing dimension') does not raise exception 1664193419
1502954308 https://github.com/pydata/xarray/pull/7746#issuecomment-1502954308 https://api.github.com/repos/pydata/xarray/issues/7746 IC_kwDOAMm_X85ZlUNE headtr1ck 43316012 2023-04-11T09:06:09Z 2023-04-11T09:06:09Z COLLABORATOR

By the way: even for such a small contribution you can add an entry into the whats-new changelog. If you wish to do so, you can open another PR and I will quickly merge it (I was too fast merging this one...).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix typo 1661789758
1502785268 https://github.com/pydata/xarray/pull/7746#issuecomment-1502785268 https://api.github.com/repos/pydata/xarray/issues/7746 IC_kwDOAMm_X85Zkq70 headtr1ck 43316012 2023-04-11T07:04:01Z 2023-04-11T07:04:01Z COLLABORATOR

Thanks for this nice little PR!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix typo 1661789758
1502746054 https://github.com/pydata/xarray/issues/7742#issuecomment-1502746054 https://api.github.com/repos/pydata/xarray/issues/7742 IC_kwDOAMm_X85ZkhXG headtr1ck 43316012 2023-04-11T06:20:08Z 2023-04-11T06:20:08Z COLLABORATOR

@ChristmasZCY does this answer your question? If yes, feel free to close this issue .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  About save char into netcdf  1659786592
1501150705 https://github.com/pydata/xarray/pull/7724#issuecomment-1501150705 https://api.github.com/repos/pydata/xarray/issues/7724 IC_kwDOAMm_X85Zeb3x headtr1ck 43316012 2023-04-09T15:09:37Z 2023-04-09T15:09:37Z COLLABORATOR

Locally it always works, it segfaults in CI, which makes it impossible to debug.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `pandas=2.0` support 1655782486
1500937954 https://github.com/pydata/xarray/issues/620#issuecomment-1500937954 https://api.github.com/repos/pydata/xarray/issues/620 IC_kwDOAMm_X85Zdn7i headtr1ck 43316012 2023-04-08T17:20:35Z 2023-04-08T17:20:50Z COLLABORATOR

Reviving this ancient issue here. We could add a deprecation cycle and issue a warning for dimensions with size 1.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Don't squeeze DataArray before plotting 110820316
1500935213 https://github.com/pydata/xarray/pull/7735#issuecomment-1500935213 https://api.github.com/repos/pydata/xarray/issues/7735 IC_kwDOAMm_X85ZdnQt headtr1ck 43316012 2023-04-08T17:05:53Z 2023-04-08T17:05:53Z COLLABORATOR

From 2.07±0.04ms to 369±10μs seems good :)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Avoid recasting a CFTimeIndex 1658287592
1500907146 https://github.com/pydata/xarray/pull/7724#issuecomment-1500907146 https://api.github.com/repos/pydata/xarray/issues/7724 IC_kwDOAMm_X85ZdgaK headtr1ck 43316012 2023-04-08T14:53:42Z 2023-04-08T14:53:42Z COLLABORATOR

@Illviljan, @headtr1ck, I just noticed that the CI version of mypy is pinned to <0.990, but the pre-commit hook is at 1.1.1. Is that intentional / known? Running the hook also exposes quite a few typing errors.

I think this is because of https://github.com/pydata/xarray/issues/7270

The pre-commit hook of mypy should be disabled anyway because it takes too long to run (should be actually much faster since mypy >=1).

I think we could check if the newest mypy still segfaults or not...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `pandas=2.0` support 1655782486
1500324581 https://github.com/pydata/xarray/pull/7732#issuecomment-1500324581 https://api.github.com/repos/pydata/xarray/issues/7732 IC_kwDOAMm_X85ZbSLl headtr1ck 43316012 2023-04-07T14:09:07Z 2023-04-07T14:11:35Z COLLABORATOR

Actually on top of examples maybe some simple text depictions could be useful? Something like this for aligning: Values: [ A A A ] + [ B B ] -> [ A B A B A ] Index:. [ 1 3 5 ] + [ 2 4 ] -> [ 1 2 3 4 5 ]

But just throwing ideas around

Edit: that's actually not what aligning does, haha. But you get the idea.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Extending the glossary 1657534038
1498503222 https://github.com/pydata/xarray/issues/3921#issuecomment-1498503222 https://api.github.com/repos/pydata/xarray/issues/3921 IC_kwDOAMm_X85ZUVg2 headtr1ck 43316012 2023-04-06T05:14:46Z 2023-04-06T05:14:46Z COLLABORATOR

I think the last remaining item has been fixed by https://github.com/pydata/xarray/pull/7586, but not completely sure.

Then we could close this issue :)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  issues discovered by the all-but-dask CI 590630281
1495843182 https://github.com/pydata/xarray/pull/7635#issuecomment-1495843182 https://api.github.com/repos/pydata/xarray/issues/7635 IC_kwDOAMm_X85ZKMFu headtr1ck 43316012 2023-04-04T11:54:17Z 2023-04-04T11:54:17Z COLLABORATOR

@dsgreen2 if you apply the last review comments this is good to go.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Implement DataArray.to_dask_dataframe() 1627298527
1495840833 https://github.com/pydata/xarray/pull/7698#issuecomment-1495840833 https://api.github.com/repos/pydata/xarray/issues/7698 IC_kwDOAMm_X85ZKLhB headtr1ck 43316012 2023-04-04T11:52:08Z 2023-04-04T11:52:08Z COLLABORATOR

I think this logic is done one level above in the call stack. But yes, maybe a different name for the argument would be better.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Use read1 instead of read to get magic number 1646350377
1494151318 https://github.com/pydata/xarray/issues/7711#issuecomment-1494151318 https://api.github.com/repos/pydata/xarray/issues/7711 IC_kwDOAMm_X85ZDvCW headtr1ck 43316012 2023-04-03T11:29:01Z 2023-04-03T11:29:01Z COLLABORATOR

Not sure what you are proposing here. We have extensive documentation on data indexing and selection here https://docs.xarray.dev/en/stable/user-guide/indexing.html

If this is not what you mean, please update your description and title to something more meaningful.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Contribution 1651829181
1493396616 https://github.com/pydata/xarray/pull/7706#issuecomment-1493396616 https://api.github.com/repos/pydata/xarray/issues/7706 IC_kwDOAMm_X85ZA2yI headtr1ck 43316012 2023-04-02T17:25:02Z 2023-04-02T17:25:02Z COLLABORATOR

Oh, you can add an entry in whats-new if you want!

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
  Add: Adds a config.yml file for welcome-bot 1650309361
1492167253 https://github.com/pydata/xarray/issues/7703#issuecomment-1492167253 https://api.github.com/repos/pydata/xarray/issues/7703 IC_kwDOAMm_X85Y8KpV headtr1ck 43316012 2023-03-31T15:45:01Z 2023-03-31T15:45:01Z COLLABORATOR

Is working again :)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Readthedocs build failing 1648748263
1491538813 https://github.com/pydata/xarray/pull/7694#issuecomment-1491538813 https://api.github.com/repos/pydata/xarray/issues/7694 IC_kwDOAMm_X85Y5xN9 headtr1ck 43316012 2023-03-31T08:41:37Z 2023-03-31T08:41:37Z COLLABORATOR

@headtr1ck Read the docs build is failing. Is it due to issue #7703. Or the fault is on my side.

Yes, that is this issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  How xarray handles missing values 1644759739
1491367287 https://github.com/pydata/xarray/pull/7669#issuecomment-1491367287 https://api.github.com/repos/pydata/xarray/issues/7669 IC_kwDOAMm_X85Y5HV3 headtr1ck 43316012 2023-03-31T06:23:18Z 2023-03-31T06:23:38Z COLLABORATOR

The failing docs CI is caused by pydata-sphinx-theme=0.13.2 being incompatible with sphinx-book-theme=1.0.0. I think we can pin pydata-sphinx-theme!=0.13.2 until they fixed that (though maybe that should be done in a new PR).

Just saw this comment. I have opened #7703 for this

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Docstrings examples for string methods 1639361476
1491365165 https://github.com/pydata/xarray/pull/7623#issuecomment-1491365165 https://api.github.com/repos/pydata/xarray/issues/7623 IC_kwDOAMm_X85Y5G0t headtr1ck 43316012 2023-03-31T06:22:28Z 2023-03-31T06:22:28Z COLLABORATOR

I am not sure if pinning works as pydata-sphinx-theme had some private function which sphinx-book-theme was using but now it cannot. Will probably have to wait for a new release of sphinx-book-theme.

See #7703

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added an introduction to the reshaping documentation 1623776623
1491364430 https://github.com/pydata/xarray/pull/7523#issuecomment-1491364430 https://api.github.com/repos/pydata/xarray/issues/7523 IC_kwDOAMm_X85Y5GpO headtr1ck 43316012 2023-03-31T06:22:09Z 2023-03-31T06:22:09Z COLLABORATOR

Thanks for the fixes. I have opened an issue about the readthedocs failing #7703, it's not an issue of this PR.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  allow refreshing of backends 1581313830
1490906724 https://github.com/pydata/xarray/issues/7701#issuecomment-1490906724 https://api.github.com/repos/pydata/xarray/issues/7701 IC_kwDOAMm_X85Y3W5k headtr1ck 43316012 2023-03-30T20:26:08Z 2023-03-30T20:26:08Z COLLABORATOR

How did you test this? I just tried it with 2023.03.0 and 2022.06.0 with all other packages the same and I get the same results (the one you say is new).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Recently introduced different behaviour of da.interp() when using floats vs DataArrays with new dim 1647883619
1489146483 https://github.com/pydata/xarray/issues/7697#issuecomment-1489146483 https://api.github.com/repos/pydata/xarray/issues/7697 IC_kwDOAMm_X85YwpJz headtr1ck 43316012 2023-03-29T19:02:39Z 2023-03-29T19:02:39Z COLLABORATOR

It seems that this problematic code is mostly used to determine the engine that is used to finally open it. Did you try specifying the correct engine directly?

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  open_mfdataset very slow 1646267547
1489144606 https://github.com/pydata/xarray/pull/7698#issuecomment-1489144606 https://api.github.com/repos/pydata/xarray/issues/7698 IC_kwDOAMm_X85Ywose headtr1ck 43316012 2023-03-29T19:01:21Z 2023-03-29T19:01:21Z COLLABORATOR

I think some backends rely on this magic number to determine the exact file format. Not sure if this change will cause problems if one doesn't get the full 8 bytes?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Use read1 instead of read to get magic number 1646350377
1484860906 https://github.com/pydata/xarray/pull/7553#issuecomment-1484860906 https://api.github.com/repos/pydata/xarray/issues/7553 IC_kwDOAMm_X85YgS3q headtr1ck 43316012 2023-03-27T10:04:34Z 2023-03-27T10:04:34Z COLLABORATOR

Thanks for this PR!

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  boundarynorm fix 1597118095
1484199176 https://github.com/pydata/xarray/issues/6891#issuecomment-1484199176 https://api.github.com/repos/pydata/xarray/issues/6891 IC_kwDOAMm_X85YdxUI headtr1ck 43316012 2023-03-26T19:30:08Z 2023-03-26T19:30:25Z COLLABORATOR

As said above, you don't have to change code to make it work. The intended way of using is da.curvefit(...., kwargs={"method": "trf"}).

You can submit a PR which changes **kwargs to kwargs in the docstring (both, Dataset.curvefit and DataArray.curvefit) and probably add some more info there.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Passing extra keyword arguments to `curvefit` throws an exception. 1331985070
1484196360 https://github.com/pydata/xarray/pull/6515#issuecomment-1484196360 https://api.github.com/repos/pydata/xarray/issues/6515 IC_kwDOAMm_X85YdwoI headtr1ck 43316012 2023-03-26T19:18:15Z 2023-03-26T19:18:15Z COLLABORATOR

@StanczakDominik are you still motivated to work on these tests?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add allow_failures flag to Dataset.curve_fit 1215946244
1484195905 https://github.com/pydata/xarray/issues/6891#issuecomment-1484195905 https://api.github.com/repos/pydata/xarray/issues/6891 IC_kwDOAMm_X85YdwhB headtr1ck 43316012 2023-03-26T19:16:38Z 2023-03-26T19:16:38Z COLLABORATOR

Actually, as @kmuehlbauer pointed out, we can address this for now by updating the docstring of the function. It should get clear the the extra kwargs are passed as a dict and not as **kwargs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Passing extra keyword arguments to `curvefit` throws an exception. 1331985070
1484195481 https://github.com/pydata/xarray/issues/7130#issuecomment-1484195481 https://api.github.com/repos/pydata/xarray/issues/7130 IC_kwDOAMm_X85YdwaZ headtr1ck 43316012 2023-03-26T19:14:48Z 2023-03-26T19:15:00Z COLLABORATOR

I am trying out open source for the first time through Outreachy. Could you please guide me a little so that I could proceed with this issue.

Welcome to xarray! I think this issue requires some discussion before we can actually address code changes. It would be better to start with a different issue first.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Passing keyword arguments to external functions 1397104515
1484188179 https://github.com/pydata/xarray/issues/6891#issuecomment-1484188179 https://api.github.com/repos/pydata/xarray/issues/6891 IC_kwDOAMm_X85YduoT headtr1ck 43316012 2023-03-26T19:02:12Z 2023-03-26T19:02:12Z COLLABORATOR

I think we should continue the discussion in https://github.com/pydata/xarray/issues/7130 since it is not clear which function signature (kwargs vs **kwargs) is preferred.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Passing extra keyword arguments to `curvefit` throws an exception. 1331985070
1484183805 https://github.com/pydata/xarray/pull/7638#issuecomment-1484183805 https://api.github.com/repos/pydata/xarray/issues/7638 IC_kwDOAMm_X85Ydtj9 headtr1ck 43316012 2023-03-26T18:43:32Z 2023-03-26T18:43:32Z COLLABORATOR

Thanks for this contribution!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Faq pull request (According to pull request #7604 & issue #1285 1627983028
1484174808 https://github.com/pydata/xarray/pull/7638#issuecomment-1484174808 https://api.github.com/repos/pydata/xarray/issues/7638 IC_kwDOAMm_X85YdrXY headtr1ck 43316012 2023-03-26T18:07:05Z 2023-03-26T18:07:05Z COLLABORATOR

In https://github.com/pydata/xarray/blob/main/doc/whats-new.rst

Add a line under the documentation section explaining what you have added. Use the rest of the file as a guideline on how to format.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Faq pull request (According to pull request #7604 & issue #1285 1627983028
1484155605 https://github.com/pydata/xarray/pull/7523#issuecomment-1484155605 https://api.github.com/repos/pydata/xarray/issues/7523 IC_kwDOAMm_X85YdmrV headtr1ck 43316012 2023-03-26T16:50:35Z 2023-03-26T16:50:35Z COLLABORATOR

Last call for reviews :)

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  allow refreshing of backends 1581313830
1484151016 https://github.com/pydata/xarray/pull/7638#issuecomment-1484151016 https://api.github.com/repos/pydata/xarray/issues/7638 IC_kwDOAMm_X85Ydljo headtr1ck 43316012 2023-03-26T16:31:49Z 2023-03-26T16:31:49Z COLLABORATOR

@harshitha1201 feel free to add an entry in doc/whats-new.rst. Then we can merge this. Thanks!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Faq pull request (According to pull request #7604 & issue #1285 1627983028
1483833424 https://github.com/pydata/xarray/pull/7674#issuecomment-1483833424 https://api.github.com/repos/pydata/xarray/issues/7674 IC_kwDOAMm_X85YcYBQ headtr1ck 43316012 2023-03-25T14:05:58Z 2023-03-25T14:05:58Z COLLABORATOR

About the logo, this might be relevant: https://github.com/xarray-contrib/xarray.dev/issues/66

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Adjust sidebar font colors 1640260666
1480142197 https://github.com/pydata/xarray/pull/6956#issuecomment-1480142197 https://api.github.com/repos/pydata/xarray/issues/6956 IC_kwDOAMm_X85YOS11 headtr1ck 43316012 2023-03-22T19:31:00Z 2023-03-22T19:31:00Z COLLABORATOR

The error of mypy is real, but unfortunately this is a design error on our side, which is out of scope for this PR. see the mypy message:

xarray/backends/netCDF4_.py:563: error: Signature of "open_dataset" incompatible with supertype "BackendEntrypoint" [override]

so simply add a # type: ignore[override] at the end of this line.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Expose `memory` argument for "netcdf4" engine 1352315409
1480136698 https://github.com/pydata/xarray/pull/7657#issuecomment-1480136698 https://api.github.com/repos/pydata/xarray/issues/7657 IC_kwDOAMm_X85YORf6 headtr1ck 43316012 2023-03-22T19:26:18Z 2023-03-22T19:26:18Z COLLABORATOR

Does anyone know why those take so long only on macos (and, partially, windows)? Does that have to do with the runner hardware?

Some of there files are 10 numbers, so the netcdf should be ~50kb or so (mostly the header overhead). On no hardware this should take >1min to read and write?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  add timeouts for tests 1635470616
1477639520 https://github.com/pydata/xarray/pull/7019#issuecomment-1477639520 https://api.github.com/repos/pydata/xarray/issues/7019 IC_kwDOAMm_X85YEv1g headtr1ck 43316012 2023-03-21T11:03:05Z 2023-03-21T11:03:05Z COLLABORATOR

I just released Cubed 0.6.0 which doesn't have a dependency on Dask, so this should be possible now.

Does this mean my comment https://github.com/pydata/xarray/pull/7019#discussion_r970713341 is valid again?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Generalize handling of chunked array types 1368740629
1475399293 https://github.com/pydata/xarray/issues/7646#issuecomment-1475399293 https://api.github.com/repos/pydata/xarray/issues/7646 IC_kwDOAMm_X85X8M59 headtr1ck 43316012 2023-03-19T21:13:48Z 2023-03-19T21:13:48Z COLLABORATOR

Can you see if you can run import numba in your environment?

If this also raises an error, your numba installation is probably broken.

If this works, then try import sparse.

Anyway, please add the output of xr.show_versions() to your issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Tests fail to run: SystemError: initialization of _internal failed without raising an exception 1630998880
1474861240 https://github.com/pydata/xarray/pull/7521#issuecomment-1474861240 https://api.github.com/repos/pydata/xarray/issues/7521 IC_kwDOAMm_X85X6Ji4 headtr1ck 43316012 2023-03-18T14:08:20Z 2023-03-18T14:08:20Z COLLABORATOR

I guess we should revert this change and use our own definition as proposed by the numpy defs. If I find time I'll make a new PR such that we can be independent off numpys version in this regard.

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  use numpys SupportsDtype 1580266844
1473820156 https://github.com/pydata/xarray/issues/5985#issuecomment-1473820156 https://api.github.com/repos/pydata/xarray/issues/5985 IC_kwDOAMm_X85X2LX8 headtr1ck 43316012 2023-03-17T13:09:02Z 2023-03-17T13:10:06Z COLLABORATOR

Found as an answer to a proposal PR: https://github.com/pydata/xarray/pull/7628#discussion_r1140211918

The solution is to use .str.format the other way around as you propose:

You can try das.str.format(da). Maybe you need to use {} instead of % in your format array.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Formatting data array as strings? 1052753606
1471425997 https://github.com/pydata/xarray/pull/7604#issuecomment-1471425997 https://api.github.com/repos/pydata/xarray/issues/7604 IC_kwDOAMm_X85XtC3N headtr1ck 43316012 2023-03-16T07:07:52Z 2023-03-16T07:07:52Z COLLABORATOR

That issue will be fixed by #7619

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Faq pull request 1618789537
1471413892 https://github.com/pydata/xarray/pull/7628#issuecomment-1471413892 https://api.github.com/repos/pydata/xarray/issues/7628 IC_kwDOAMm_X85Xs_6E headtr1ck 43316012 2023-03-16T06:53:52Z 2023-03-16T06:53:52Z COLLABORATOR

Again, I think that this implementation is too specific and the issue wanted a more general string formatting option.

Also, auch a method is better kept as part of the StrAccessor.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add method to format xarray.DataArray as strings for issue #5985 1624520287
1470829677 https://github.com/pydata/xarray/pull/7625#issuecomment-1470829677 https://api.github.com/repos/pydata/xarray/issues/7625 IC_kwDOAMm_X85XqxRt headtr1ck 43316012 2023-03-15T20:56:37Z 2023-03-15T20:56:37Z COLLABORATOR

Could you also merge main again?

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Use more descriptive link texts 1623949333
1470782099 https://github.com/pydata/xarray/pull/7586#issuecomment-1470782099 https://api.github.com/repos/pydata/xarray/issues/7586 IC_kwDOAMm_X85XqlqT headtr1ck 43316012 2023-03-15T20:17:33Z 2023-03-15T20:17:33Z COLLABORATOR

Could this potentially affect performance?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lazy negative slice rewriting. 1610063645
1469697108 https://github.com/pydata/xarray/pull/7628#issuecomment-1469697108 https://api.github.com/repos/pydata/xarray/issues/7628 IC_kwDOAMm_X85XmcxU headtr1ck 43316012 2023-03-15T09:57:12Z 2023-03-15T09:57:12Z COLLABORATOR

By the way, this works (but probably slow?):

```python

def tostr(x): return f"{:.2f}"

tostr_v = np.vectorize(tostr)

da = xr.DataArray([1, 2, 3.456], dims="x")

tostr_v(da) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add method to format xarray.DataArray as strings for issue #5985 1624520287
1469677146 https://github.com/pydata/xarray/pull/7628#issuecomment-1469677146 https://api.github.com/repos/pydata/xarray/issues/7628 IC_kwDOAMm_X85XmX5a headtr1ck 43316012 2023-03-15T09:43:57Z 2023-03-15T09:44:33Z COLLABORATOR

Wouldn't it be more useful to have something like da.str.format("sometext: {:2.2f}")

Or maybe da.as_str(...)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add method to format xarray.DataArray as strings for issue #5985 1624520287
1466890220 https://github.com/pydata/xarray/issues/6914#issuecomment-1466890220 https://api.github.com/repos/pydata/xarray/issues/6914 IC_kwDOAMm_X85Xbvfs headtr1ck 43316012 2023-03-13T20:11:15Z 2023-03-13T20:11:15Z COLLABORATOR

@melioristic could you reproduce the matplotlib results by setting interpolation?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  plt.imshow() vs xarray_dataset.plot.imshow() not rendering correctly | Potential Bug 1338173609
1466868513 https://github.com/pydata/xarray/issues/7372#issuecomment-1466868513 https://api.github.com/repos/pydata/xarray/issues/7372 IC_kwDOAMm_X85XbqMh headtr1ck 43316012 2023-03-13T19:56:31Z 2023-03-13T19:56:31Z COLLABORATOR

Then let's close this issue in favor of #4817

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  getting confused by xarray not reporting the netCDF ```_FillValue``` attribute in jupyter notebooks: add ```_FillValue``` to the "report"? 1486990254
1466864506 https://github.com/pydata/xarray/issues/7385#issuecomment-1466864506 https://api.github.com/repos/pydata/xarray/issues/7385 IC_kwDOAMm_X85XbpN6 headtr1ck 43316012 2023-03-13T19:53:06Z 2023-03-13T19:53:06Z COLLABORATOR

@dopplershift does this answer fix your problem?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Unexpected NaNs in broadcast 1499473190
1465733617 https://github.com/pydata/xarray/pull/7612#issuecomment-1465733617 https://api.github.com/repos/pydata/xarray/issues/7612 IC_kwDOAMm_X85XXVHx headtr1ck 43316012 2023-03-13T08:50:53Z 2023-03-13T08:50:53Z COLLABORATOR

Nice! (at one point we can consider removing infer_intervals as this is now also done in matplotlib and cartopy).

Yeah, I was wondering why we do this explicitly. Should we remove it now already, or is there something that still requires it (like older matplotlib versions etc)?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix `pcolormesh` with str coords 1620317764
1465302631 https://github.com/pydata/xarray/issues/4114#issuecomment-1465302631 https://api.github.com/repos/pydata/xarray/issues/4114 IC_kwDOAMm_X85XVr5n headtr1ck 43316012 2023-03-12T21:20:35Z 2023-03-12T21:20:35Z COLLABORATOR

I assume this has been resolved then? If not, feel free to reopen.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Optionally create new figure automatically 627805952
1465290779 https://github.com/pydata/xarray/issues/5666#issuecomment-1465290779 https://api.github.com/repos/pydata/xarray/issues/5666 IC_kwDOAMm_X85XVpAb headtr1ck 43316012 2023-03-12T20:20:27Z 2023-03-12T20:20:27Z COLLABORATOR

Thanks for the report and sorry for the late reply :)

This is not an issue of xarray but rather netCDF4. The corresponding issue can be found here: https://github.com/Unidata/netcdf4-python/issues/941 It seems that there is no solution yet.

Since it seems that it is a HDF5 issue I don't know if any other backend could fix this issue for you (I tried h5netcdf without success).

I will close this issue for now since we cannot fix it anyway.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  netCDF failing roundtrip with unicode chars 958557945
1465235251 https://github.com/pydata/xarray/issues/5836#issuecomment-1465235251 https://api.github.com/repos/pydata/xarray/issues/5836 IC_kwDOAMm_X85XVbcz headtr1ck 43316012 2023-03-12T15:59:13Z 2023-03-12T15:59:13Z COLLABORATOR

This is indeed intentional (Now with type hints even more obvious). I agree that in a jupyter notebook that automatically displays the last return value, this might look confusing.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_zarr returns <xarray.backends.zarr.ZarrStore at ...> 1013881639
1465230423 https://github.com/pydata/xarray/issues/6244#issuecomment-1465230423 https://api.github.com/repos/pydata/xarray/issues/6244 IC_kwDOAMm_X85XVaRX headtr1ck 43316012 2023-03-12T15:38:37Z 2023-03-12T15:38:37Z COLLABORATOR

Almost all files have from __future__ import annotations now and pyupgrade is doing its thing :)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Get pyupgrade to update the typing 1125040125
1465228869 https://github.com/pydata/xarray/issues/6870#issuecomment-1465228869 https://api.github.com/repos/pydata/xarray/issues/6870 IC_kwDOAMm_X85XVZ5F headtr1ck 43316012 2023-03-12T15:32:01Z 2023-03-12T15:32:01Z COLLABORATOR

The logic of figuring out what stays and what goes is different in DataArray and Dataset. DataArray reduces the variable and then kicks out all dims, coords, indexes that don't fit anymore. Dataset tries to do the selection on the fly (and apparently fails to do so).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `rolling_exp` loses coords 1326238990
1465227486 https://github.com/pydata/xarray/issues/6870#issuecomment-1465227486 https://api.github.com/repos/pydata/xarray/issues/6870 IC_kwDOAMm_X85XVZje headtr1ck 43316012 2023-03-12T15:25:47Z 2023-03-12T15:27:31Z COLLABORATOR

This is actually a bug in Dataset.reduce, it will drop the time index as well. See this example: ```python da = xr.DataArray([[1, 2, 3], [4, 5, 6]], dims=["x", "y"], coords={"x": [5, 6]}) da.reduce(lambda x, _, *__: x, dim="x") # has time coord

ds = xr.Dataset({"a": da}) ds.reduce(lambda x, _, *__: x, dim="x") # lost time coord ```

Probably the assumtion when writing this code was that the passed function actually reduces the dim.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `rolling_exp` loses coords 1326238990
1465150129 https://github.com/pydata/xarray/issues/6990#issuecomment-1465150129 https://api.github.com/repos/pydata/xarray/issues/6990 IC_kwDOAMm_X85XVGqx headtr1ck 43316012 2023-03-12T10:17:13Z 2023-03-12T10:17:13Z COLLABORATOR

Closing for now. Feel free to reopen or better to comment in the linked issues above.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  New MultiIndex dimension behaviours 1361989642
1465149441 https://github.com/pydata/xarray/issues/6877#issuecomment-1465149441 https://api.github.com/repos/pydata/xarray/issues/6877 IC_kwDOAMm_X85XVGgB headtr1ck 43316012 2023-03-12T10:14:37Z 2023-03-12T10:14:37Z COLLABORATOR

Closing for now. Seems like an upstream issue. Feel free to reopen if it is still relevant.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  RuntimeError: NetCDF: HDF error 1329407773
1465000306 https://github.com/pydata/xarray/issues/1004#issuecomment-1465000306 https://api.github.com/repos/pydata/xarray/issues/1004 IC_kwDOAMm_X85XUiFy headtr1ck 43316012 2023-03-11T19:57:40Z 2023-03-11T19:57:40Z COLLABORATOR

Am I missing something, or is there no IndexVariable.name attribute anymore?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Remove IndexVariable.name 176805500
1464948290 https://github.com/pydata/xarray/issues/7611#issuecomment-1464948290 https://api.github.com/repos/pydata/xarray/issues/7611 IC_kwDOAMm_X85XUVZC headtr1ck 43316012 2023-03-11T16:34:50Z 2023-03-11T16:34:50Z COLLABORATOR

Sounds like a good idea to mention the license and what it means in the documentation.

We don't assign issues to people, so if you are interested in doing so feel free to open a PR.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Adding Licences the official documentation site 1619980197
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

DataAlignable = TypeVar("DataAlignable", bound=DataWithCoords | Coordinates) -> doesn't work since we cannot mix DataWithCoords and Coordinates when aligning each object (input type = output type)

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
1464386387 https://github.com/pydata/xarray/issues/7336#issuecomment-1464386387 https://api.github.com/repos/pydata/xarray/issues/7336 IC_kwDOAMm_X85XSMNT headtr1ck 43316012 2023-03-10T20:32:50Z 2023-03-10T20:32:50Z COLLABORATOR

Closing this issue now as completed. Discussion about documentation can be continued in #7344

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Instability when calculating standard deviation 1468838643
1464384781 https://github.com/pydata/xarray/issues/7344#issuecomment-1464384781 https://api.github.com/repos/pydata/xarray/issues/7344 IC_kwDOAMm_X85XSL0N headtr1ck 43316012 2023-03-10T20:31:28Z 2023-03-10T20:31:28Z COLLABORATOR

Maybe it is just a problem of documenting it more clearly?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Disable bottleneck by default? 1471685307
1464348270 https://github.com/pydata/xarray/issues/5762#issuecomment-1464348270 https://api.github.com/repos/pydata/xarray/issues/5762 IC_kwDOAMm_X85XSC5u headtr1ck 43316012 2023-03-10T20:01:18Z 2023-03-10T20:01:18Z COLLABORATOR

Closing this issue in favor of #7593 since the provided MVCE in this issue now works.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Plotting of labelled data fails 987551524
1464331562 https://github.com/pydata/xarray/issues/7199#issuecomment-1464331562 https://api.github.com/repos/pydata/xarray/issues/7199 IC_kwDOAMm_X85XR-0q headtr1ck 43316012 2023-03-10T19:49:10Z 2023-03-10T19:49:10Z COLLABORATOR

Any ideas on how to deprecate this? Do we raise a Deprecation warning if someone uses the open_dataset method of the internal backend? And then remove it some versions down the line?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Deprecate cfgrib backend 1419825696
1462773338 https://github.com/pydata/xarray/pull/7521#issuecomment-1462773338 https://api.github.com/repos/pydata/xarray/issues/7521 IC_kwDOAMm_X85XMCZa headtr1ck 43316012 2023-03-09T20:44:04Z 2023-03-09T20:44:04Z COLLABORATOR

It seems that numpy is somewhat against this change, so maybe we are better off to restore the previous state to not have a mess with supporting different numpy versions again. Lets keep that in mind before the next release but wait if something changes on numpys side.

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  use numpys SupportsDtype 1580266844
1462760816 https://github.com/pydata/xarray/pull/7600#issuecomment-1462760816 https://api.github.com/repos/pydata/xarray/issues/7600 IC_kwDOAMm_X85XL_Vw headtr1ck 43316012 2023-03-09T20:40:25Z 2023-03-09T20:40:25Z COLLABORATOR

Ok :) But I guess it is better to not merge this then, it will only create messy merge conflicts for other PRs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Enable blacks `skip_magic_trailing_comma` options 1615980379
1462754116 https://github.com/pydata/xarray/pull/3607#issuecomment-1462754116 https://api.github.com/repos/pydata/xarray/issues/3607 IC_kwDOAMm_X85XL9tE headtr1ck 43316012 2023-03-09T20:37:18Z 2023-03-09T20:37:18Z COLLABORATOR

Is that still wanted? It seems like a useful feature to have.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Strided rolling 535686852
1462752419 https://github.com/pydata/xarray/pull/7578#issuecomment-1462752419 https://api.github.com/repos/pydata/xarray/issues/7578 IC_kwDOAMm_X85XL9Sj headtr1ck 43316012 2023-03-09T20:36:31Z 2023-03-09T20:36:31Z COLLABORATOR

Good spot. The fix seems good to me. If you fix the tests and add a whats-new this is good to go

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Removed `.isel` for `DatasetRolling.construct` consistent rolling behavior 1607502760
1460859161 https://github.com/pydata/xarray/pull/7598#issuecomment-1460859161 https://api.github.com/repos/pydata/xarray/issues/7598 IC_kwDOAMm_X85XEvEZ headtr1ck 43316012 2023-03-08T20:50:46Z 2023-03-08T20:50:46Z COLLABORATOR

As a newcomer, a short general question: The 'Contributing' guide mentions to document changes in whats-new.rst. Shall this be done by the developer or are you (the maintainers) doing this once the PR is merged into the main branch?

(Since at the time of requesting, I can`t know when (or if) the issue will be merged).

Usually this is done by the developer/contributor. You can just copy a similar entry and adopt it to yourself in the newest section, you have basically full freedom :)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix missing 'dim' argument in _get_nan_block_lengths 1615645463
1450819830 https://github.com/pydata/xarray/pull/7521#issuecomment-1450819830 https://api.github.com/repos/pydata/xarray/issues/7521 IC_kwDOAMm_X85WecD2 headtr1ck 43316012 2023-03-01T20:44:52Z 2023-03-01T20:44:52Z COLLABORATOR

I have opened https://github.com/numpy/numpy/issues/23308

It should be an easy change on numpys side if they decide to go for it. Only problem, we again have to special case this based on bumpy version, haha.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  use numpys SupportsDtype 1580266844
1449430920 https://github.com/pydata/xarray/issues/7519#issuecomment-1449430920 https://api.github.com/repos/pydata/xarray/issues/7519 IC_kwDOAMm_X85WZI-I headtr1ck 43316012 2023-03-01T06:34:48Z 2023-03-01T06:35:08Z COLLABORATOR

Should we special case a solution? Seems user-friendly to do so.

I think dict_keys is its own type so with some type ignore this could work.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Selecting variables from Dataset with view on dict keys is of type DataArray 1579956621
1449428744 https://github.com/pydata/xarray/pull/7521#issuecomment-1449428744 https://api.github.com/repos/pydata/xarray/issues/7521 IC_kwDOAMm_X85WZIcI headtr1ck 43316012 2023-03-01T06:31:46Z 2023-03-01T06:31:46Z COLLABORATOR

Do you know if there's a plan to make something like this public on the numpy end?

No idea, the static typing of numpy is still changing a lot and has many bugs (same with xarray, haha).

I'm sure they will make it public is we request it.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  use numpys SupportsDtype 1580266844
1449013427 https://github.com/pydata/xarray/issues/3980#issuecomment-1449013427 https://api.github.com/repos/pydata/xarray/issues/3980 IC_kwDOAMm_X85WXjCz headtr1ck 43316012 2023-02-28T22:24:56Z 2023-02-28T22:24:56Z COLLABORATOR

I will not be able to join tomorrow, so here are my thoughts on this topic:

  • How to work with subclassed Datasets that should return DataArrays? I think the pandas approach is good, we add Dataset.dataarray_cls = DataArray and DataArray.dataset_cls = Dataset which subclasses can overwrite.
  • How to deal with subclasses that change the constructor aka. __init__? Probably we need to introduce a kind of shortcut constructor that will be called instead in functions that create new instances (right now the subclass needs the same constructor signature as xarrays version). But then custom instance attributes will not be set etc. Not sure what is the best approach here.
  • Is the whole thing limited to DataArrays and Datasets or can one also subclass Variables?
{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Make subclassing easier? 602218021
1447067702 https://github.com/pydata/xarray/issues/7552#issuecomment-1447067702 https://api.github.com/repos/pydata/xarray/issues/7552 IC_kwDOAMm_X85WQIA2 headtr1ck 43316012 2023-02-27T20:50:13Z 2023-02-27T20:50:13Z COLLABORATOR

@liorella-qm in the meantime you can use da.plot.line(col='y') as a workaround

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  plotting facet grid with singleton dimension should create a facet grid with size 1 1596890616
1447057892 https://github.com/pydata/xarray/issues/7552#issuecomment-1447057892 https://api.github.com/repos/pydata/xarray/issues/7552 IC_kwDOAMm_X85WQFnk headtr1ck 43316012 2023-02-27T20:43:00Z 2023-02-27T20:48:19Z COLLABORATOR

This is caused by the squeeze() here: https://github.com/pydata/xarray/blob/41949209b6cfb0d5c25d000b1e0c5739b513385c/xarray/plot/dataarray_plot.py#L267

@Illviljan do you know why this is required? I assume you want to remove singleton dimensions to better choose the correct plot method?

Maybe we should exclude col, row dims from the squeeze? something like: darray.squeeze(d for d, s in darray.sizes.items() if s == 1 and d not in (row, col, hue))

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  plotting facet grid with singleton dimension should create a facet grid with size 1 1596890616
1447037080 https://github.com/pydata/xarray/issues/7516#issuecomment-1447037080 https://api.github.com/repos/pydata/xarray/issues/7516 IC_kwDOAMm_X85WQAiY headtr1ck 43316012 2023-02-27T20:27:52Z 2023-02-27T20:27:52Z COLLABORATOR

I am a bit puzzled here... The dask graph looks identical, so it must be the way the indexers are constructed.

The major difference I can find is: The old version used np.unique while the new version uses xarrays cond.any(..)

Maybe someone with more experience in dask can help out?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset.where performances regression. 1575938277
1445469752 https://github.com/pydata/xarray/issues/7516#issuecomment-1445469752 https://api.github.com/repos/pydata/xarray/issues/7516 IC_kwDOAMm_X85WKB44 headtr1ck 43316012 2023-02-26T21:16:35Z 2023-02-26T21:16:35Z COLLABORATOR

Git bisect pinpoints this to https://github.com/pydata/xarray/pull/6690 which funny enough, is my PR haha. I will look into it when I find time :)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset.where performances regression. 1575938277
1445467918 https://github.com/pydata/xarray/issues/7516#issuecomment-1445467918 https://api.github.com/repos/pydata/xarray/issues/7516 IC_kwDOAMm_X85WKBcO headtr1ck 43316012 2023-02-26T21:07:56Z 2023-02-26T21:07:56Z COLLABORATOR

Can confirm, on my machine it went from 520ms to 5s

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset.where performances regression. 1575938277
1445457887 https://github.com/pydata/xarray/issues/7513#issuecomment-1445457887 https://api.github.com/repos/pydata/xarray/issues/7513 IC_kwDOAMm_X85WJ-_f headtr1ck 43316012 2023-02-26T20:21:23Z 2023-02-26T20:21:23Z COLLABORATOR

Not sure if related, but this also randomly failed (different error though): https://github.com/pydata/xarray/actions/runs/4276072684/jobs/7443939252

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  intermittent failures with h5netcdf, h5py on macos 1574694462

Next page

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 42.08ms · About: xarray-datasette