Imported StringUtils into SummaryFile1.
Removed the InvalidAreaError, since we need to accept areas of zero.
--- /dev/null
+def is_integer(s):
+ try:
+ x = int(s)
+ return True
+ except:
+ return False
+
-import os, GPS, inspect
+import os
+
+import GPS
+import StringUtils
-class RecordError(StandardError):
- pass
-class InvalidAreaError(StandardError):
+class RecordError(StandardError):
pass
class GeoRecord:
except ValueError:
# A value couldn't be converted to the appropriate type.
continue
- except InvalidAreaError:
- # Something is funny with the geometry.
- continue
return blocks