Skip to content

Commit d414a0c

Browse files
authored
Merge branch 'master' into pint
2 parents 7808fda + eb39f87 commit d414a0c

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
Changelog
22
=========
3+
v0.2.1 - 2022-03-22
4+
-------------------
5+
Despite all the checking, we missed a bad bug.
6+
7+
Bug Fixes
8+
`````````
9+
* Fixed a bug where attributes would attempt to be be added to non xr.DataArray objects if the gsw function has multiple return values.
310

411
v0.2.0 - 2022-03-22
512
-------------------

gsw_xarray/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.2.0"
1+
__version__ = "0.2.1"
22

33
from importlib import import_module
44

gsw_xarray/_core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def add_attrs(rv, attrs, name):
2020
rv.name = name
2121
rv.attrs = attrs
2222

23-
2423
def pint_compat(args, kwargs):
2524
if pint_xarray is None:
2625
return args, kwargs, False
@@ -74,7 +73,7 @@ def cf_attrs_wrapper(*args, **kwargs):
7473
rv_updated.append(da)
7574

7675
rv = tuple(rv_updated)
77-
76+
7877
else:
7978
add_attrs(rv, attrs_checked, name)
8079
if is_quantity:

gsw_xarray/tests/test_gsw_xarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def test_version():
9-
assert __version__ == "0.2.0"
9+
assert __version__ == "0.2.1"
1010

1111

1212
def test_func_standard(ds):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gsw-xarray"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "Drop in wrapper for gsw which adds CF standard name and units attributes to xarray results"
55
authors = ["Andrew Barna <[email protected]>", "Romain Caneill <[email protected]>"]
66
license = "BSD-3-Clause"

0 commit comments

Comments
 (0)