Skip to content

Commit b13773d

Browse files
committed
Address Copilot review comments
1 parent 512c471 commit b13773d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Below is a list of top-level API functions that are available in ``xcdat``.
4242
Module-level API Functions
4343
--------------------------
4444

45-
Below is a list of model-level API functions that are available in ``xcdat``.
45+
Below is a list of module-level API functions that are available in ``xcdat``.
4646

4747
.. autosummary::
4848
:toctree: generated/

tests/test_mask.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ def test_mask_fractional(self, ds):
201201
xr.testing.assert_allclose(output.ts, expected_sea)
202202

203203
# invert expected
204-
expected_land = expected_sea.copy()
205-
expected_land = xr.where(expected_sea == 1, np.nan, expected_land)
204+
expected_land = xr.where(expected_sea == 1, np.nan, expected_sea)
206205
expected_land = xr.where(np.isnan(expected_sea), 1.0, np.nan)
207206

208207
output = mask.generate_and_apply_land_sea_mask(

xcdat/spatial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def mask_sea(
140140
method: str = "regionmask",
141141
criteria: float | None = None,
142142
mask: xr.DataArray | None = None,
143-
output_mask: bool = False,
143+
output_mask: bool | str = False,
144144
**options: Any,
145145
):
146146
"""
@@ -166,7 +166,7 @@ def mask_sea(
166166
**options : Any
167167
These options are passed directly to the ``method``. See specific
168168
method documentation for available options:
169-
:func:`xcdat.mask.pcmdi_land_sea_mask` for PCMDI options
169+
:func:`xcdat.mask.pcmdi_land_sea_mask` for PCMDI options.
170170
171171
Returns
172172
-------

0 commit comments

Comments
 (0)