Hello community,

here is the log from the commit of package python-gsw for openSUSE:Factory 
checked in at 2019-04-02 09:20:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gsw (Old)
 and      /work/SRC/openSUSE:Factory/.python-gsw.new.25356 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gsw"

Tue Apr  2 09:20:41 2019 rev:5 rq:687595 version:3.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gsw/python-gsw.changes    2019-02-24 
17:16:04.104443412 +0100
+++ /work/SRC/openSUSE:Factory/.python-gsw.new.25356/python-gsw.changes 
2019-04-02 09:20:43.140622413 +0200
@@ -3,0 +4,6 @@
+- Update to 3.3.0:
+  * Adds functions SP_salinometer, O2sol, and O2sol_SP_pt by
+    updating the C source. 
+  * Fixes a bug in handling of p_ref in geostrophy.
+  * Fixes a bug in distance when the pressure argument is
+    omitted.

Old:
----
  gsw-3.2.1.tar.gz

New:
----
  gsw-3.3.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gsw.spec ++++++
--- /var/tmp/diff_new_pack.giB8yq/_old  2019-04-02 09:20:44.036623252 +0200
+++ /var/tmp/diff_new_pack.giB8yq/_new  2019-04-02 09:20:44.040623256 +0200
@@ -22,7 +22,7 @@
 %define skip_python2 1
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-gsw
-Version:        3.2.1
+Version:        3.3.0
 Release:        0
 Summary:        Gibbs Seawater Oceanographic Package of TEOS-10
 # Note: Python code is MIT licensed

++++++ gsw-3.2.1.tar.gz -> gsw-3.3.0.tar.gz ++++++
++++ 261113 lines of diff (skipped)

++++++ tests.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gsw/tests/test_geostrophy.py 
new/gsw/tests/test_geostrophy.py
--- old/gsw/tests/test_geostrophy.py    2018-07-26 15:02:22.549205013 +0200
+++ new/gsw/tests/test_geostrophy.py    2019-02-20 14:41:29.337550749 +0100
@@ -26,6 +26,10 @@
     value = gsw.distance(np.array(lon), np.array(lat), p=0, axis=-1)
     assert_almost_equal(expected, value)
 
+def test_1darray_default_p():
+    # @match_args_return doesn't see the default p.
+    value = gsw.distance(np.array(lon), np.array(lat))
+    assert_almost_equal(expected, value)
 
 def test_2dlist():
     value = gsw.distance(np.atleast_2d(lon), np.atleast_2d(lat), p=0, axis=1)
@@ -69,3 +73,19 @@
     assert_almost_equal(geovel, cv.geo_strf_velocity)
     assert_almost_equal(midlon, cv.geo_strf_velocity_mid_long[0])
     assert_almost_equal(midlat, cv.geo_strf_velocity_mid_lat[0])
+
+def test_dyn_height_shallower_pref():
+    """
+    Check that we can handle a p_ref that is shallower than the top of the
+    cast.  To make the results from bin 1 on down independent of whether
+    bin 0 has been deleted, we need to use linear interpolation.
+    """
+    p = cv.p_chck_cast
+    CT = cv.CT_chck_cast
+    SA = cv.SA_chck_cast
+    strf0 = gsw.geo_strf_dyn_height(SA, CT, p, p_ref=0, interp_method='linear')
+    strf1 = gsw.geo_strf_dyn_height(SA[1:], CT[1:], p[1:], p_ref=0,
+                                    interp_method='linear')
+    found = strf1 - strf1[0]
+    expected = strf0[1:] - strf0[1]
+    assert_almost_equal(found, expected)


Reply via email to