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:36:40 UTC
svn commit: r1514731 -
/incubator/climate/branches/RefactorInput/ocw/dataset.py
Author: joyce
Date: Fri Aug 16 14:36:40 2013
New Revision: 1514731
URL: http://svn.apache.org/r1514731
Log:
CLIMATE-254 - Add lon_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=1514731&r1=1514730&r2=1514731&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/dataset.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/dataset.py Fri Aug 16 14:36:40 2013
@@ -208,3 +208,14 @@ class Bounds(object):
raise ValueError("Attempted to set lon_min to invalid value.")
self._lon_min = value
+
+ @property
+ def lon_max(self):
+ return self._lon_max
+
+ @lon_max.setter
+ def lon_max(self, value):
+ if not (-180 <= value <= 180 and value > self._lon_min):
+ raise ValueError("Attempted to set lon_max to invalid value.")
+
+ self._lon_max = value