Skip to content

Commit 4fb17b1

Browse files
committed
Merge remote-tracking branch 'upstream/main' into groupby-aggs-using-numpy-groupies
* upstream/main: Replace markdown issue templates with issue forms (pydata#6119) Remove lock kwarg (pydata#5912) Remove pre-commit GHA workflow (pydata#6120) is_dask_collection: micro optimization (pydata#6107) Revert "Single matplotlib import (pydata#5794)" (pydata#6064) Add support for cross product (pydata#5365) assert ds errors in test_backends (pydata#6122) assert ds errors in test_dataset.py (pydata#6123)
2 parents bdb999f + 2cb95a8 commit 4fb17b1

21 files changed

+492
-149
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

-39
This file was deleted.

.github/ISSUE_TEMPLATE/bugreport.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Bug Report
2+
description: File a bug report to help us improve
3+
title: '[Bug]: '
4+
labels: [bug, 'needs triage']
5+
assignees: []
6+
body:
7+
- type: textarea
8+
id: what-happened
9+
attributes:
10+
label: What happened?
11+
description: |
12+
Thanks for reporting a bug! Please describe what you were trying to get done.
13+
Tell us what happened, what went wrong.
14+
validations:
15+
required: true
16+
17+
- type: textarea
18+
id: what-did-you-expect-to-happen
19+
attributes:
20+
label: What did you expect to happen?
21+
description: |
22+
Describe what you expected to happen.
23+
validations:
24+
required: false
25+
26+
- type: textarea
27+
id: sample-code
28+
attributes:
29+
label: Minimal Complete Verifiable Example
30+
description: |
31+
Minimal, self-contained copy-pastable example that generates the issue if possible. Please be concise with code posted. See guidelines below on how to provide a good bug report:
32+
33+
- [Minimal Complete Verifiable Examples](https://stackoverflow.com/help/mcve)
34+
- [Craft Minimal Bug Reports](http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
35+
36+
Bug reports that follow these guidelines are easier to diagnose, and so are often handled much more quickly.
37+
This will be automatically formatted into code, so no need for markdown backticks.
38+
render: python
39+
40+
- type: textarea
41+
id: log-output
42+
attributes:
43+
label: Relevant log output
44+
description: Please copy and paste any relevant output. This will be automatically formatted into code, so no need for markdown backticks.
45+
render: python
46+
47+
- type: textarea
48+
id: extra
49+
attributes:
50+
label: Anything else we need to know?
51+
description: |
52+
Please describe any other information you want to share.
53+
54+
- type: textarea
55+
id: show-versions
56+
attributes:
57+
label: Environment
58+
description: |
59+
Paste the output of `xr.show_versions()` here
60+
validations:
61+
required: true

.github/ISSUE_TEMPLATE/feature-request.md

-22
This file was deleted.

.github/ISSUE_TEMPLATE/newfeature.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Feature Request
2+
description: Suggest an idea for xarray
3+
title: '[FEATURE]: '
4+
labels: [enhancement]
5+
assignees: []
6+
body:
7+
- type: textarea
8+
id: description
9+
attributes:
10+
label: Is your feature request related to a problem?
11+
description: |
12+
Please do a quick search of existing issues to make sure that this has not been asked before.
13+
Please provide a clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: solution
18+
attributes:
19+
label: Describe the solution you'd like
20+
description: |
21+
A clear and concise description of what you want to happen.
22+
- type: textarea
23+
id: alternatives
24+
attributes:
25+
label: Describe alternatives you've considered
26+
description: |
27+
A clear and concise description of any alternative solutions or features you've considered.
28+
validations:
29+
required: false
30+
- type: textarea
31+
id: additional-context
32+
attributes:
33+
label: Additional context
34+
description: |
35+
Add any other context about the feature request here.
36+
validations:
37+
required: false

.github/PULL_REQUEST_TEMPLATE.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
- [ ] Closes #xxxx
44
- [ ] Tests added
5-
- [ ] Passes `pre-commit run --all-files`
65
- [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst`
76
- [ ] New functions/methods are listed in `api.rst`

.github/workflows/ci-pre-commit.yml

-17
This file was deleted.

asv_bench/benchmarks/import_xarray.py

-9
This file was deleted.

doc/api.rst

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Top-level functions
3232
ones_like
3333
cov
3434
corr
35+
cross
3536
dot
3637
polyval
3738
map_blocks

doc/whats-new.rst

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ v0.21.0 (unreleased)
2121

2222
New Features
2323
~~~~~~~~~~~~
24+
- New top-level function :py:func:`cross`. (:issue:`3279`, :pull:`5365`).
25+
By `Jimmy Westling <https://github.com/illviljan>`_.
2426

2527

2628
Breaking changes
@@ -29,6 +31,8 @@ Breaking changes
2931

3032
Deprecations
3133
~~~~~~~~~~~~
34+
- Removed the lock kwarg from the zarr and pydap backends, completing the deprecation cycle started in :issue:`5256`.
35+
By `Tom Nicholas <https://github.com/TomNicholas>`_.
3236

3337

3438
Bug fixes

xarray/__init__.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@
1616
from .core.alignment import align, broadcast
1717
from .core.combine import combine_by_coords, combine_nested
1818
from .core.common import ALL_DIMS, full_like, ones_like, zeros_like
19-
from .core.computation import apply_ufunc, corr, cov, dot, polyval, unify_chunks, where
19+
from .core.computation import (
20+
apply_ufunc,
21+
corr,
22+
cov,
23+
cross,
24+
dot,
25+
polyval,
26+
unify_chunks,
27+
where,
28+
)
2029
from .core.concat import concat
2130
from .core.dataarray import DataArray
2231
from .core.dataset import Dataset
@@ -60,6 +69,7 @@
6069
"dot",
6170
"cov",
6271
"corr",
72+
"cross",
6373
"full_like",
6474
"get_options",
6575
"infer_freq",

xarray/backends/pydap_.py

-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import warnings
2-
31
import numpy as np
42

53
from ..core import indexing
@@ -126,15 +124,7 @@ def open_dataset(
126124
use_cftime=None,
127125
decode_timedelta=None,
128126
session=None,
129-
lock=None,
130127
):
131-
# TODO remove after v0.19
132-
if lock is not None:
133-
warnings.warn(
134-
"The kwarg 'lock' has been deprecated for this backend, and is now "
135-
"ignored. In the future passing lock will raise an error.",
136-
DeprecationWarning,
137-
)
138128

139129
store = PydapDataStore.open(
140130
filename_or_obj,

xarray/backends/zarr.py

-8
Original file line numberDiff line numberDiff line change
@@ -810,15 +810,7 @@ def open_dataset(
810810
chunk_store=None,
811811
storage_options=None,
812812
stacklevel=3,
813-
lock=None,
814813
):
815-
# TODO remove after v0.19
816-
if lock is not None:
817-
warnings.warn(
818-
"The kwarg 'lock' has been deprecated for this backend, and is now "
819-
"ignored. In the future passing lock will raise an error.",
820-
DeprecationWarning,
821-
)
822814

823815
filename_or_obj = _normalize_path(filename_or_obj)
824816
store = ZarrStore.open_group(

0 commit comments

Comments
 (0)