Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align language def in bugreport.yml with schema #6290

Merged
merged 2 commits into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bugreport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ body:

Bug reports that follow these guidelines are easier to diagnose, and so are often handled much more quickly.
This will be automatically formatted into code, so no need for markdown backticks.
render: python
render: Python

- type: textarea
id: log-output
attributes:
label: Relevant log output
description: Please copy and paste any relevant output. This will be automatically formatted into code, so no need for markdown backticks.
render: python
render: Python

- type: textarea
id: extra
Expand Down
4 changes: 2 additions & 2 deletions doc/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@ Some other important things to know about the docs:
.. ipython:: python

x = 2
x ** 3
x**3

will be rendered as::

In [1]: x = 2

In [2]: x ** 3
In [2]: x**3
Out[2]: 8

Almost all code examples in the docs are run (and the output saved) during the
Expand Down
4 changes: 2 additions & 2 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5133,7 +5133,7 @@ Enhancements
.. ipython:: python

ds = xray.Dataset(coords={"x": range(100), "y": range(100)})
ds["distance"] = np.sqrt(ds.x ** 2 + ds.y ** 2)
ds["distance"] = np.sqrt(ds.x**2 + ds.y**2)

@savefig where_example.png width=4in height=4in
ds.distance.where(ds.distance < 100).plot()
Expand Down Expand Up @@ -5341,7 +5341,7 @@ Enhancements
.. ipython:: python

ds = xray.Dataset({"y": ("x", [1, 2, 3])})
ds.assign(z=lambda ds: ds.y ** 2)
ds.assign(z=lambda ds: ds.y**2)
ds.assign_coords(z=("x", ["a", "b", "c"]))

These methods return a new Dataset (or DataArray) with updated data or
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ def apply_ufunc(
Calculate the vector magnitude of two arguments:

>>> def magnitude(a, b):
... func = lambda x, y: np.sqrt(x ** 2 + y ** 2)
... func = lambda x, y: np.sqrt(x**2 + y**2)
... return xr.apply_ufunc(func, a, b)
...

Expand Down