climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1514727 - /incubator/climate/branches/RefactorInput/ocw/dataset.py
Date Fri, 16 Aug 2013 14:30:23 GMT
Author: joyce
Date: Fri Aug 16 14:30:22 2013
New Revision: 1514727

URL: http://svn.apache.org/r1514727
Log:
CLIMATE-254 - Add lat_max property

Modified:
    incubator/climate/branches/RefactorInput/ocw/dataset.py

Modified: incubator/climate/branches/RefactorInput/ocw/dataset.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/dataset.py?rev=1514727&r1=1514726&r2=1514727&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/dataset.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/dataset.py Fri Aug 16 14:30:22 2013
@@ -186,3 +186,14 @@ class Bounds(object):
             raise ValueError("Attempted to set lat_min to invalid value.")
 
         self._lat_min = value
+
+    @property
+    def lat_max(self):
+        return self._lat_max
+
+    @lat_max.setter
+    def lat_max(self, value):
+        if not (-90 <= value <= 90 and value > self._lat_min):
+            raise ValueError("Attempted to set lat_max to invalid value.")
+
+        self._lat_max = value



Mime
View raw message