issues
8 rows where state = "closed", type = "issue" and user = 1386642 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: comments, created_at (date), updated_at (date), closed_at (date)
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at ▲ | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
856172272 | MDU6SXNzdWU4NTYxNzIyNzI= | 5144 | Add chunks argument to {zeros/ones/empty}_like. | nbren12 1386642 | closed | 0 | 5 | 2021-04-12T17:01:47Z | 2023-10-25T03:18:05Z | 2023-10-25T03:18:05Z | CONTRIBUTOR | Describe the solution you'd like We have started using xarray objects as "schema" for initializing zarrs that will be written to using the
Currently, xarray's tools for computing the Describe alternatives you've considered
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/5144/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
334366223 | MDU6SXNzdWUzMzQzNjYyMjM= | 2241 | Slow performance with isel on stacked coordinates | nbren12 1386642 | closed | 0 | 4 | 2018-06-21T07:13:32Z | 2020-06-20T20:51:48Z | 2020-06-20T20:51:48Z | CONTRIBUTOR | Code Sample```python
Problem descriptionI have noticed some pretty significant slow downs when using dask and stacked indices. As you can see in the example above, selecting the point x=0, y=0 takes about 4 times as long when the x and y dimensions are stacked together. This big difference only appears when Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2241/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
631940742 | MDU6SXNzdWU2MzE5NDA3NDI= | 4125 | Improving typing of `xr.Dataset.__getitem__` | nbren12 1386642 | closed | 0 | 2 | 2020-06-05T20:40:39Z | 2020-06-15T11:25:53Z | 2020-06-15T11:25:53Z | CONTRIBUTOR | First, I'd like the thank the xarray dev's for adding type hints to this library, not many libraries have this feature! That said, the indexing notation of MCVE Code Sample``` def func(ds: xr.Dataset): pass dataset: xr.Dataset = ... error:this line will give type error because mypy doesn't knowif ds[['a', 'b]] is Dataset or a DataArrayfunc(ds[['a', 'b']]) ``` Expected OutputMypy should be able to infer that Problem DescriptionThis requires any routine with type hints that consume an output of VersionsOutput of <tt>xr.show_versions()</tt>In [1]: import xarray as xr xr. In [2]: xr.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.7.7 (default, May 7 2020, 21:25:33) [GCC 7.3.0] python-bits: 64 OS: Linux OS-release: 5.3.0-1020-gcp machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: C.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.4 libnetcdf: 4.7.3 xarray: 0.15.1 pandas: 1.0.1 numpy: 1.18.1 scipy: 1.4.1 netCDF4: 1.5.3 pydap: None h5netcdf: 0.8.0 h5py: 2.10.0 Nio: None zarr: 2.4.0 cftime: 1.1.2 nc_time_axis: 1.2.0 PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None dask: 2.17.2 distributed: 2.17.0 matplotlib: 3.1.3 cartopy: 0.17.0 seaborn: 0.10.1 numbagg: None setuptools: 46.4.0.post20200518 pip: 20.0.2 conda: 4.8.3 pytest: 5.4.2 IPython: 7.13.0 sphinx: NonePotential solutionI think we can fix this with typing.overload. I am not too familiar with that librariy, but I think something like the following might work: ``` from typing import overload class Dataset @overload def getitem(self, key: Hashable) -> DataArray: ...
``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/4125/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
289837692 | MDU6SXNzdWUyODk4Mzc2OTI= | 1839 | Add simple array creation functions for easier unit testing | nbren12 1386642 | closed | 0 | 3 | 2018-01-19T01:53:20Z | 2020-01-19T04:21:10Z | 2020-01-19T04:21:10Z | CONTRIBUTOR | When I am writing unit tests for routines that involve
``` As you can see, I devote many lines to initializing a 4D data array of all ones, where all the coordinates are In any case, having some sort of functions like |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1839/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
497427114 | MDU6SXNzdWU0OTc0MjcxMTQ= | 3337 | Dataset.groupby reductions give "Dataset does not contain dimensions error" in v0.13 | nbren12 1386642 | closed | 0 | 1 | 2019-09-24T03:01:00Z | 2019-10-10T18:23:22Z | 2019-10-10T18:23:22Z | CONTRIBUTOR | MCVE Code Sample```python
Problem DescriptionGroupby reduction operations on In addition the error message is confusing since Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3337/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
216215022 | MDU6SXNzdWUyMTYyMTUwMjI= | 1317 | API for reshaping DataArrays as 2D "data matrices" for use in machine learning | nbren12 1386642 | closed | 0 | 9 | 2017-03-22T21:33:07Z | 2019-07-05T00:32:51Z | 2019-07-05T00:32:51Z | CONTRIBUTOR | Machine learning and linear algebra problems are often expressed in terms of operations on matrices rather than arrays of arbitrary dimension, and there is currently no convenient way to turn DataArrays (or combinations of DataArrays) into a single "data matrix". As an example, I have needed to use scikit-learn lately with data from DataArray objects. Scikit-learn requires the data to be expressed in terms of simple 2-dimensional matrices. The rows are called samples, and the columns are known as features. It is annoying and error to transpose and reshape a data array by hand to fit into this format. For instance, this gituhub repo for xarray aware sklearn-like objects devotes many lines of code to massaging data arrays into data matrices. I think that this reshaping workflow might be common enough to warrant some kind of treatment in xarray. I have written some code in this gist, that have found pretty convenient for doing this. This gist has an rs = XRReshaper(A) data_matrix, _ = rs.to(feature_dims) Some linear algebra or machine learning,, eofs = svd(data_matrix) eofs_datarray = rs.get(eofs[0], ['mode'] + feature_dims) ``` I am not sure this is the best API, but it seems to work pretty well and I have used it here to implement some xarray-aware sklearn-like objects for PCA, which can be used like
Another syntax which might be helpful is some kind of context manager approach like ```python with XRReshaper(A) as rs, data_matrix: # do some stuff with data_matrix use rs to restore output to a data array.``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1317/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
291103680 | MDU6SXNzdWUyOTExMDM2ODA= | 1852 | bug: 2D pcolormesh plots are wrong when coordinate is not ascending order | nbren12 1386642 | closed | 0 | 9 | 2018-01-24T07:01:07Z | 2018-02-18T19:06:31Z | 2018-02-18T19:06:31Z | CONTRIBUTOR | Code Sample, a copy-pastable example if possible```python import matplotlib.pyplot as plt import numpy as np import xarray as xr x = np.arange(10) y = np.arange(20) np.random.shuffle(x) x = xr.DataArray(x, dims=['x'], coords={'x': x}) y = xr.DataArray(y, dims=['y'], coords={'y': y}) z = x + y z_sorted = z.isel(x=np.argsort(x.values)) make plotfig, axs= plt.subplots(1, 2, figsize=(6,3)) z_sorted.plot(ax=axs[0]) axs[0].set_title("X is sorted") z.plot(ax=axs[1]) axs[1].set_title("X is not unsorted") plt.tight_layout() ``` Problem descriptionSometime the coordinates in an xarray dataset are not always sorted in ascending order. I recently had an issue where the time coordinate of a 2D datasets was scrambled, so calling Expected OutputHere is the image generated by the snippet above: The left and right panels should be the same. Paste the output here xr.show_versions() here
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.2.final.0
python-bits: 64
OS: Darwin
OS-release: 16.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
xarray: 0.10.0+dev50.ga988dc2
pandas: 0.20.3
numpy: 1.13.1
scipy: 0.19.1
netCDF4: 1.3.1
h5netcdf: 0.5.0
Nio: None
zarr: None
bottleneck: 1.2.1
cyordereddict: None
dask: 0.15.2
distributed: 1.18.3
matplotlib: 2.0.2
cartopy: None
seaborn: 0.8.0
setuptools: 36.5.0.post20170921
pip: 9.0.1
conda: 4.3.29
pytest: 3.2.1
IPython: 6.1.0
sphinx: 1.6.3
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1852/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
258640421 | MDU6SXNzdWUyNTg2NDA0MjE= | 1577 | Potential error in apply_ufunc docstring for input_core_dims | nbren12 1386642 | closed | 0 | 5 | 2017-09-18T22:28:10Z | 2017-10-10T04:42:21Z | 2017-10-10T04:42:21Z | CONTRIBUTOR | The documentation for
``` The first and second paragraphs seem contradictory to me. Shouldn't the first paragraph be changed to:
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1577/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issues] ( [id] INTEGER PRIMARY KEY, [node_id] TEXT, [number] INTEGER, [title] TEXT, [user] INTEGER REFERENCES [users]([id]), [state] TEXT, [locked] INTEGER, [assignee] INTEGER REFERENCES [users]([id]), [milestone] INTEGER REFERENCES [milestones]([id]), [comments] INTEGER, [created_at] TEXT, [updated_at] TEXT, [closed_at] TEXT, [author_association] TEXT, [active_lock_reason] TEXT, [draft] INTEGER, [pull_request] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [state_reason] TEXT, [repo] INTEGER REFERENCES [repos]([id]), [type] TEXT ); CREATE INDEX [idx_issues_repo] ON [issues] ([repo]); CREATE INDEX [idx_issues_milestone] ON [issues] ([milestone]); CREATE INDEX [idx_issues_assignee] ON [issues] ([assignee]); CREATE INDEX [idx_issues_user] ON [issues] ([user]);