climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huiky...@apache.org
Subject [1/2] climate git commit: CLIMATE-669 - OCW spatial_boundary bug
Date Thu, 10 Sep 2015 17:11:26 GMT
Repository: climate
Updated Branches:
  refs/heads/master 31f0ff298 -> 082a3ad67


CLIMATE-669 - OCW spatial_boundary bug

- min and max functions in ocw.dataset.spatial_boundaries are replaced by numpy.min and numpy.max


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/96c7e377
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/96c7e377
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/96c7e377

Branch: refs/heads/master
Commit: 96c7e377dce9c40eca9472e23ccd26fa22c236c3
Parents: 31f0ff2
Author: huikyole <huikyole@argo.jpl.nasa.gov>
Authored: Thu Sep 10 10:03:34 2015 -0700
Committer: huikyole <huikyole@argo.jpl.nasa.gov>
Committed: Thu Sep 10 10:03:34 2015 -0700

----------------------------------------------------------------------
 ocw/dataset.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/96c7e377/ocw/dataset.py
----------------------------------------------------------------------
diff --git a/ocw/dataset.py b/ocw/dataset.py
index e6b0bc6..80be53c 100644
--- a/ocw/dataset.py
+++ b/ocw/dataset.py
@@ -89,8 +89,8 @@ class Dataset:
             :class:`float`, :class:`float`).
 
         '''
-        return (float(min(self.lats)), float(max(self.lats)),
-                float(min(self.lons)), float(max(self.lons)))
+        return (float(numpy.min(self.lats)), float(numpy.max(self.lats)),
+                float(numpy.min(self.lons)), float(numpy.max(self.lons)))
 
 
     def time_range(self):


Mime
View raw message