From a0d705794f4bb2ba682a306b0e618d5feab78ef8 Mon Sep 17 00:00:00 2001 From: huikyole Date: Tue, 8 Sep 2015 23:03:30 -0700 Subject: [PATCH] CLIMATE-667 - OCW spatial_boundaries bug - ocw.dataset.spatial_boundaries uses np.min and np.max instead of min and max --- ocw/dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocw/dataset.py b/ocw/dataset.py index e4329284..342e370e 100644 --- a/ocw/dataset.py +++ b/ocw/dataset.py @@ -89,8 +89,8 @@ def spatial_boundaries(self): :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):