You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/08/16 16:30:23 UTC

svn commit: r1514727 - /incubator/climate/branches/RefactorInput/ocw/dataset.py

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