home / github

Menu
  • GraphQL API
  • Search all tables

issues

Table actions
  • GraphQL API for issues

26 rows where state = "closed", type = "pull" and user = 226037 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: comments, created_at (date), updated_at (date), closed_at (date)

type 1

  • pull · 26 ✖

state 1

  • closed · 26 ✖

repo 1

  • xarray 26
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
769288855 MDExOlB1bGxSZXF1ZXN0NTQxNDUzNDQ3 4701 Allow pathlib.Path to be passed to all engines alexamici 226037 closed 0     4 2020-12-16T21:36:33Z 2021-09-01T08:46:35Z 2020-12-18T13:43:32Z MEMBER   0 pydata/xarray/pulls/4701
  • Related to #4309 and in particular: https://github.com/pydata/xarray/issues/4309#issuecomment-747055666
  • [x] Passes isort . && black . && mypy . && flake8
  • No user visible change

Once ZarrStore.open_group and NetCDF4DataStore.open accepts pathlib.Path objects we can remove _normalize_path from apiv2.open_dataset. All other backends accept them.

Note that zarr itself doesn't support them, yet. See: https://github.com/zarr-developers/zarr-python/issues/601

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4701/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
877567048 MDExOlB1bGxSZXF1ZXN0NjMxNDk2ODgx 5266 v0.18.0 release highlights alexamici 226037 closed 0     0 2021-05-06T14:35:56Z 2021-05-06T16:43:14Z 2021-05-06T16:43:14Z MEMBER   0 pydata/xarray/pulls/5266
  • [x] Related to #5232
  • [x] ~Tests added~
  • [x] Passes pre-commit run --all-files
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • [x] New functions/methods are listed in api.rst

@TomNicholas @dcherian & @pydata/xarray please review and propose changes

I'm at the item 6. of the how to release guide.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5266/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
875151070 MDExOlB1bGxSZXF1ZXN0NjI5NTUyODUx 5256 More correct deprecation warning for `lock` argument alexamici 226037 closed 0     0 2021-05-04T06:34:50Z 2021-05-04T15:08:11Z 2021-05-04T14:30:09Z MEMBER   0 pydata/xarray/pulls/5256
  • [x] Closes #5073 (alternative to and more precise than #5237)
  • [ ] Tests added
  • [x] Passes pre-commit run --all-files
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • [x] New functions/methods are listed in api.rst

@TomNicholas and all, sorry again for addressing this late.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5256/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
855388231 MDExOlB1bGxSZXF1ZXN0NjEzMTMzODA3 5139 Protect against an exception raised by python-eccodes alexamici 226037 closed 0     3 2021-04-11T19:28:25Z 2021-04-12T11:24:57Z 2021-04-12T07:29:03Z MEMBER   0 pydata/xarray/pulls/5139

Depending on the kind of problem python-eccdodes may return RuntimeError or ImportError.

  • [x] Related to #5138
  • [x] Passes pre-commit run --all-files
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5139/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
852296907 MDExOlB1bGxSZXF1ZXN0NjEwNTc0MDg5 5127 Simplify the user experience of a backend developer (imports and docs) alexamici 226037 closed 0     0 2021-04-07T11:11:58Z 2021-04-11T18:50:06Z 2021-04-11T18:50:06Z MEMBER   0 pydata/xarray/pulls/5127
  • [x] Proposed fix for #5125
  • [x] No need to add tests
  • [x] Passes pre-commit run --all-files
  • [x] Documentation is synced

This is mostly a stylistic revamp of the documentation on "How to add a new backend" after I followed the process a couple of times: * add import statments * use always my_*/My (there where some your_) * avoid ellipsis

The main code change is adding references to BackendEntrypoint and BackendArray in xarray.backends.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5127/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
851746775 MDExOlB1bGxSZXF1ZXN0NjEwMTE3MTc1 5121 Do not write an empty "coordinates" attribute to a netCDF file alexamici 226037 closed 0     0 2021-04-06T19:29:23Z 2021-04-07T17:34:15Z 2021-04-07T17:34:15Z MEMBER   0 pydata/xarray/pulls/5121
  • [x] No issue, trivial cleanup
  • [x] Tests modified to match

The behaviour is not too problematic as CF checkers don't complain about the empty string, but it is aesthetically annoying.

This happens more frequently after #2844 added the auxiliary variable to .coords.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5121/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
850236909 MDExOlB1bGxSZXF1ZXN0NjA4ODQxOTAy 5112 Add LazilyOuterIndexedArray alias to LazilyIndexedArray for external backends to use alexamici 226037 closed 0     3 2021-04-05T09:34:03Z 2021-04-06T10:18:04Z 2021-04-06T09:18:50Z MEMBER   0 pydata/xarray/pulls/5112
  • [x] Closes #5111
  • [x] No need to add tests
  • [x] Passes pre-commit run --all-files
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5112/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
821312099 MDExOlB1bGxSZXF1ZXN0NTg0MTI1MzQw 4989 Switch backend API to v2 alexamici 226037 closed 0     3 2021-03-03T17:12:14Z 2021-03-09T01:04:05Z 2021-03-09T01:04:00Z MEMBER   0 pydata/xarray/pulls/4989
  • [x] Closes #4309
  • [x] Tests added
  • [x] Passes pre-commit run --all-files
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • [x] New functions/methods are listed in api.rst

The documentation is in PR #4803

This is a big change so it better gets in early in the development cycle.

Some users visible changes to xr.open_dataset need to be discussed.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4989/reactions",
    "total_count": 4,
    "+1": 4,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
807455876 MDExOlB1bGxSZXF1ZXN0NTcyNzAzNzUz 4899 Revert defaults of backends' open_datasets to prepare the switch to APIv2 alexamici 226037 closed 0     0 2021-02-12T18:28:01Z 2021-02-17T18:12:34Z 2021-02-17T18:12:34Z MEMBER   0 pydata/xarray/pulls/4899
  • [x] Related to #4309
  • [x] Passes pre-commit run --all-files

Internal fix. At the moment even when setting XARRAY_BACKEND_API=v2 the defaults of open_dataset are defined by the v1 function. In APIv2 the defaults are defined by the backends (for example pseudonetcdf_.py sets mask_and_scale=False).

This PR fixes the backend defaults to be the same as in v1 in all cases.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4899/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
785997226 MDExOlB1bGxSZXF1ZXN0NTU0OTM4NDQ2 4809 Remove the references to `_file_obj` outside low level code paths, change to `_close` alexamici 226037 closed 0     3 2021-01-14T13:40:25Z 2021-01-18T15:19:35Z 2021-01-18T15:19:35Z MEMBER   0 pydata/xarray/pulls/4809
  • [x] Related to #4309
  • [x] No tests added, all tests passing
  • [x] Passes pre-commit run --all-files
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • [x] No new functions/methods are listed in api.rst

You can now pass a close argument to xr.Dataset that closes the backend resources. This is only useful to backend developers, we need to add the documentation as per #4803 but it may need to be hidden and not documented to end-users.

The PR is draft pending some cleanups and the documentation.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4809/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
781348113 MDExOlB1bGxSZXF1ZXN0NTUxMDg3NjM4 4777 Remove special case in guess_engines alexamici 226037 closed 0     0 2021-01-07T14:20:46Z 2021-01-08T09:33:20Z 2021-01-08T09:33:20Z MEMBER   0 pydata/xarray/pulls/4777
  • [x] Related to #4724
  • [x] Tests sync'ed
  • [x] Passes isort . && black . && mypy . && flake8
  • [x] No user visible changes
  • [x] No new functions/methods

This is a minor cleanup of the backend API v2.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4777/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
775396676 MDExOlB1bGxSZXF1ZXN0NTQ2MDkwODA3 4737 Declare only BASIC indexing for cfgrib. Fixes #4733 and ecmwf/cfgrib#157 alexamici 226037 closed 0     0 2020-12-28T13:19:21Z 2021-01-02T08:17:37Z 2021-01-02T08:17:37Z MEMBER   0 pydata/xarray/pulls/4737
  • [x] Closes #4733
  • [x] Tests added
  • [x] Passes isort . && black . && mypy . && flake8
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • No new functions/methods are listed in api.rst
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4737/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
774436992 MDExOlB1bGxSZXF1ZXN0NTQ1MzYxNTgy 4731 Close files in PseudoNetCDF backend to avoid CachingFileManager warnings. alexamici 226037 closed 0     0 2020-12-24T13:25:32Z 2020-12-28T11:06:04Z 2020-12-28T11:06:04Z MEMBER   0 pydata/xarray/pulls/4731
  • [x] No issue, internal clenaup
  • [x] Tests fixed
  • [x] Passes isort . && black . && mypy . && flake8

Tiny cleanup to silence a couple CachingFileManager warnings about files not being properly closed.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4731/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
773048869 MDExOlB1bGxSZXF1ZXN0NTQ0MjA3MjE0 4721 APIv2 internal cleanups alexamici 226037 closed 0     1 2020-12-22T15:52:28Z 2020-12-22T16:47:10Z 2020-12-22T16:47:10Z MEMBER   0 pydata/xarray/pulls/4721
  • [x] Related to #4309
  • [x] No tests added, all tests pass
  • [x] Passes isort . && black . && mypy . && flake8
  • [x] No user visible change
  • [x] No new functions/methods

Stop importing api.py in apiv2.py and other internal cleanups.

This is needed by another change that results in a cyclic import due to api.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4721/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
771048648 MDExOlB1bGxSZXF1ZXN0NTQyNjc2MDQ4 4709 APIv2: move all _autodetect_engine logic to the plugins alexamici 226037 closed 0     0 2020-12-18T17:23:16Z 2020-12-22T15:33:40Z 2020-12-22T15:33:40Z MEMBER   0 pydata/xarray/pulls/4709
  • [x] Relates to #4309
  • [x] Tests updated
  • [x] Passes isort . && black . && mypy . && flake8
  • No user visible changes (including notable bug fixes) are documented in whats-new.rst
  • No new functions/methods are listed in api.rst

Changes affects only APIv2.

This PR removes all remaining knowledge about what backend support from the generic code path in apiv2.open_dataset.

Once we make the switch to API v2 a big chunk of code can be removed from api.py.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4709/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
770801513 MDExOlB1bGxSZXF1ZXN0NTQyNDc3NDg0 4707 APIv2: pass user defined `filename_or_obj` to backends as is alexamici 226037 closed 0     1 2020-12-18T11:14:05Z 2020-12-22T14:14:18Z 2020-12-22T14:14:18Z MEMBER   0 pydata/xarray/pulls/4707
  • [x] Related to #4309
  • No test added, but all tests pass.
  • [x] Passes isort . && black . && mypy . && flake8
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • No new functions/methods.

The change affects only APIv2.

Pros: - open_dataset passes the dataset description object filename_or_obj to the backends without fiddling with it. This is more and more important as several backends know how to open dicts, file's strs that are not paths (rasterio for example accepts GDAL strings that are not paths and that is one of the reasons engine="rasterio" cannot be used in open_dataset)

Cons: - at the moment backends expect paths to always be absolute, not sure if they use this info.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4707/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
709195443 MDExOlB1bGxSZXF1ZXN0NDkzMjk5OTI4 4462 Cleanup logic inside `open_dataset`, mostly `extra_kwargs` alexamici 226037 closed 0     0 2020-09-25T18:30:28Z 2020-12-10T10:31:02Z 2020-10-08T15:06:37Z MEMBER   0 pydata/xarray/pulls/4462

This is a small, pure code-refactor PR that removes some of the cruft left in open_dataset from #4187 and #4431

  • [x] Additional clean ups after #4431
  • [x] Pure code refactor, no change in tests
  • [x] Passes isort . && black . && mypy . && flake8

Note that mode="r" is the default in open_group.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4462/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
708766975 MDExOlB1bGxSZXF1ZXN0NDkyOTMxMzk3 4458 Autodetect the engine only when `engine=None` alexamici 226037 closed 0     2 2020-09-25T08:53:27Z 2020-12-10T10:30:56Z 2020-09-28T15:42:01Z MEMBER   0 pydata/xarray/pulls/4458

Always use the engine explicitly selected by the user and perform auto detection only when engine=None.

  • [x] Closes #4457
  • [x] Tests added
  • [x] Passes isort . && black . && mypy . && flake8
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • [x] No new functions/methods

The refactor complexity stems mostly from moving or duplicating some logic from _get_engine_from_magic_number to the backend stores. The current, rather ugly, code minimizes changes to the error conditions and messages.

Later in the backend refactor the plugins will provide the functionalities to identify the format from the file content and the duplication should be eliminated.

@jhamman do you think I need to acknowledge the CZI sponsorship in the changelog?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4458/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
703550109 MDExOlB1bGxSZXF1ZXN0NDg4NjM5MDYy 4431 Refactor of the big if-chain to a dictionary in the form {backend_name: backend_open}. alexamici 226037 closed 0     9 2020-09-17T12:39:55Z 2020-12-10T10:30:40Z 2020-09-24T15:03:46Z MEMBER   0 pydata/xarray/pulls/4431

This ports the clean up of the messy if-else-chain from #3166. It should make adding the new back-end API easier.

The change is relatively trivial, but it touches code in xr.open_dataset so extra care should be used by reviewers. We think the change is safe and it does pass all tests.

  • [x] Port the generic part of #3166
  • [x] Tests sync'ed
  • [x] Passes isort . && black . && mypy . && flake8
  • [x] No user visible change
  • [x] No new functions/methods

I cannot add reviewers myself, but we agreed this should go to @jhamman.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4431/reactions",
    "total_count": 3,
    "+1": 3,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
673061269 MDExOlB1bGxSZXF1ZXN0NDYyOTkwNzg1 4310 Remove all unused and warn-raising methods from AbstractDataStore alexamici 226037 closed 0     1 2020-08-04T20:27:57Z 2020-09-22T21:12:47Z 2020-08-05T14:27:51Z MEMBER   0 pydata/xarray/pulls/4310
  • [x] Related but really orthogonal to #4309
  • [x] Remove code, but keeps all existing tests passing (on MacOS with pandas=1.0.5)
  • [x] Passes isort . && black . && mypy . && flake8
  • [x] No user / developer visible changes are expected

@shoyer this could be the first pass of the simplification of the current backend API. It not needed for #4309, but it make more obvious that we'd be free to keep the AbstractDataStore class if we wanted to.

The reason the change can be considered reasonably innocuous is that warnings would have been printed on access to any of the removed methods, but you never know. Your call (but I'd love to have a delete-only contribution to xarray :D).

Please note that: 1. this change is the absolute lowest hanging fruit, 2. removing __enter__ and __exit__ appears feasible as they are used only in tests, but it is a slightly bigger change, 3. removing load is marginally more complex because it handle the special case when a variable name is equal to None.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4310/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
448741666 MDExOlB1bGxSZXF1ZXN0MjgyNDI1MzA2 2992 Simplify conda envs: cfgrib is now part of conda-forge alexamici 226037 closed 0     1 2019-05-27T08:55:26Z 2019-05-28T21:32:27Z 2019-05-28T21:32:27Z MEMBER   0 pydata/xarray/pulls/2992

This is a minor cleanup of the conda environment creation files: * no direct reference to ecCodes * conda-only dependency resolution

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2992/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
377366269 MDExOlB1bGxSZXF1ZXN0MjI4MzI2MjU0 2544 Drop the hack needed by CachingFileManager in cfgrib_.py alexamici 226037 closed 0     1 2018-11-05T11:51:05Z 2018-11-06T16:23:17Z 2018-11-06T16:23:16Z MEMBER   0 pydata/xarray/pulls/2544

This is a minor cleanup of the backend_kwargs hack that was needed to support CachingFileManager and that I forgot to remove after I stopped using it.

I didn't include this bit in #2540 because I didn't want to pollute the important fix with cleanup noise.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2544/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
377196329 MDExOlB1bGxSZXF1ZXN0MjI4MjAzOTQw 2540 Remove use of deprecated and unused keyword in cfgrib.open_file. alexamici 226037 closed 0     1 2018-11-04T21:23:30Z 2018-11-05T02:35:28Z 2018-11-05T02:35:28Z MEMBER   0 pydata/xarray/pulls/2540

This is a trivial fix to remove the use of the mode keyword in the cfgrib.open_file call. The keyword has always be ignored and will be deprecated with the next version of cfgrib.

Better to have this fix in before the v0.11 release.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2540/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
368004737 MDExOlB1bGxSZXF1ZXN0MjIxMjgyMzI0 2476 Add a GRIB backend via ECMWF cfgrib / ecCodes alexamici 226037 closed 0     17 2018-10-09T01:13:10Z 2018-10-25T21:10:36Z 2018-10-17T16:53:32Z MEMBER   0 pydata/xarray/pulls/2476

This is currently a WIP PR for review. - [x] Addresses #2475 - only read support is proposed for now. - [x] Tests added. - [x] Documented, including whats-new.rst for all changes and api.rst for new API.

The implementation depends on the python module cfgrib and the C-library ecCodes to be installed.

Work in progress items: - [x] the coordinate rename doesn't really belong here, move it to cfgrib, - [x] port cfgrib backend to use the new CachingFileManager interface - [x] implement proper locking - [x] test dask support (real performance with dask depends on saving the external index) - ~~~the encoding options are needlessly different from the standard ones, try to sync them~~~ not urgent

cc @StephanSiemen @iainrussell

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2476/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
372924734 MDExOlB1bGxSZXF1ZXN0MjI0OTgxMjc5 2502 Fix tests to new coordinate names in cfgrib>=0.9.2 alexamici 226037 closed 0     2 2018-10-23T10:24:05Z 2018-10-25T20:57:40Z 2018-10-23T18:28:48Z MEMBER   0 pydata/xarray/pulls/2502

Fix TestCfGrib broken by a user-visible backward-incompatible change in cfgrib>=0.9.2.

No other user visible coordinate name change is expected so the test can remain like it is.

Sorry for the inconvenience!

  • [x] Noted in the discussion of #2500
  • [x] Tests added
  • ~~Fully documented, including whats-new.rst for all changes and api.rst for new API~~
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2502/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
371514413 MDExOlB1bGxSZXF1ZXN0MjIzOTQzNTcz 2492 ENH: Detect the GRIB files by the filename extension and suggest engine. alexamici 226037 closed 0     11 2018-10-18T12:50:13Z 2018-10-25T20:57:38Z 2018-10-22T15:26:14Z MEMBER   0 pydata/xarray/pulls/2492

_get_default_engine chooses the engine suitable to open the path, ATM it only detects URL's. In this PR I propose to also detect GRIB files by the extension and suggest to the user which engine to use.

Updated: The whole engine detection strategy looked a bit fragile as the .gz extension was recognised outside of _get_default_engine and the nested ifs and try / except blocks make the code poorly readable. I added a bit of a refactor in this area.

  • ~~Closes xxxx~~
  • [x] Tests added
  • ~~Fully documented, including whats-new.rst for all changes and api.rst for new API.~~ No change to document.
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2492/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 1922.853ms · About: xarray-datasette