Repository: climate Updated Branches: refs/heads/master 34cadf03d -> 31f0ff298
CLIMATE-667 - OCW spatial_boundaries bug - ocw.dataset.spatial_boundaries uses np.min and np.max instead of min and max Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/a0d70579 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/a0d70579 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/a0d70579 Branch: refs/heads/master Commit: a0d705794f4bb2ba682a306b0e618d5feab78ef8 Parents: 7f34fc3 Author: huikyole <[email protected]> Authored: Tue Sep 8 23:03:30 2015 -0700 Committer: huikyole <[email protected]> Committed: Tue Sep 8 23:03:30 2015 -0700 ---------------------------------------------------------------------- ocw/dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/a0d70579/ocw/dataset.py ---------------------------------------------------------------------- diff --git a/ocw/dataset.py b/ocw/dataset.py index e432928..342e370 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):
