Skip to content

Commit eb65b5d

Browse files
committed
Add changelog
1 parent c11433f commit eb65b5d

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

CHANGELOG.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Changelog
2+
=========
3+
4+
v0.2.0 - 2022-03-22
5+
-------------------
6+
This is a major release that is ready for widespread usage.
7+
Our focus was on ensuring compatibility with the upstream API and a units overhaul.
8+
9+
Highlights
10+
``````````
11+
* Upstream compatibility with package layout.
12+
All the ways you can import gsw and its submodule should now Just Work.
13+
This includes wildcard imports: ``from gsw_xarray import *`` and even some private members in the upstream that have leaked out.
14+
* All returned xr.DataArray objects will have the units attr set to the correct unit, or be "1" if the result is unitless.
15+
The unit style is compatible with both UDUNITS (the CF requirement) and the python pint library.
16+
Several mistakes were found in the upstream documentation, both in the python and matlab sources.
17+
* Functions returning practical salinity or sea water temperature will have the OceanSITES reference_scale attribute set to "PSS-78" or "ITS-90" if appropriate.
18+
* Some standard names assume information about the surface or geopotential that a property is being calculated against.
19+
We now have some check functions that ensure the standard name is not set if one of these assumptions is not true.
20+
21+
Breaking Changes
22+
````````````````
23+
* The attrs of the returned xr.DataArray object are now completely replaced by attrs controlled by us.
24+
Previously we would only set the standard_name or units attributes and leave everything else untouched.
25+
We found this to be confusing and inaccurate since the behavior of xarray would copy the attributes of the first argument to a gsw function.
26+
This resulted in attributes like long_name to be incorrect.
27+
* The xr.DataArray.name property is now set to the return name of the gsw function.
28+
For example, SA_from_SP will return a DataArray with name property set to "SA".
29+
30+
v0.1.0 - 2021-12-15
31+
-------------------
32+
* Original release, was basically a proof of concept.
33+
Only a few functions were wrapped.

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../CHANGELOG.rst

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Contents
1414
:maxdepth: 2
1515

1616
attrs
17+
changelog
1718

1819

1920

0 commit comments

Comments
 (0)