climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1572824 - /incubator/climate/trunk/ocw/dataset.py
Date Fri, 28 Feb 2014 05:47:10 GMT
Author: joyce
Date: Fri Feb 28 05:47:10 2014
New Revision: 1572824

URL: http://svn.apache.org/r1572824
Log:
CLIMATE-352 - Force data type of dataset.spatial_bounds
CLIMATE-352 - Initial progress

Modified:
    incubator/climate/trunk/ocw/dataset.py

Modified: incubator/climate/trunk/ocw/dataset.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw/dataset.py?rev=1572824&r1=1572823&r2=1572824&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/dataset.py (original)
+++ incubator/climate/trunk/ocw/dataset.py Fri Feb 28 05:47:10 2014
@@ -68,8 +68,8 @@ class Dataset:
         :rtype: (float, float, float, float)
 
         '''
-        return (min(self.lats), max(self.lats),
-                min(self.lons), max(self.lons))
+        return (float(min(self.lats)), float(max(self.lats)),
+                float(min(self.lons)), float(max(self.lons)))
 
 
     def time_range(self):
@@ -212,10 +212,10 @@ class Bounds(object):
 
         :raises: ValueError
         '''
-        self._lat_min = lat_min
-        self._lat_max = lat_max
-        self._lon_min = lon_min
-        self._lon_max = lon_max
+        self._lat_min = float(lat_min)
+        self._lat_max = float(lat_max)
+        self._lon_min = float(lon_min)
+        self._lon_max = float(lon_max)
         self._start = start
         self._end = end
 



Mime
View raw message