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:33:59 UTC

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

Author: joyce
Date: Fri Aug 16 14:33:59 2013
New Revision: 1514729

URL: http://svn.apache.org/r1514729
Log:
CLIMATE-254 - Add lon_min 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=1514729&r1=1514728&r2=1514729&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/dataset.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/dataset.py Fri Aug 16 14:33:59 2013
@@ -197,3 +197,14 @@ class Bounds(object):
             raise ValueError("Attempted to set lat_max to invalid value.")
 
         self._lat_max = value
+
+    @property
+    def lon_min(self):
+        return self._lon_min
+
+    @lon_min.setter
+    def lon_min(self, value):
+        if not (-180 <= value <= 180 and value < self._lon_max):
+            raise ValueError("Attempted to set lon_min to invalid value.")
+
+        self._lon_min = value