I'm using the 0.12 specs for the JPK driver, so allow version 0.12 files.
authorW. Trevor King <wking@drexel.edu>
Wed, 8 Sep 2010 17:59:08 +0000 (13:59 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 8 Sep 2010 17:59:08 +0000 (13:59 -0400)
The previous range(12) code only went up to version 0.11.

hooke/driver/jpk.py

index ba38f6a485d5b3c764318be8e21d45399c7c00c9..760d9f1709f2f04d17a4b2c2309626204a1eeb0a 100644 (file)
@@ -79,7 +79,7 @@ class JPKDriver (Driver):
                                 if p.endswith('segment-header.properties')])):
                 segments.append(self._zip_segment(
                         f, path, info, zip_info, i, version))
-        if version not in ['0.%d' % i for i in range(12)]:
+        if version not in ['0.%d' % i for i in range(13)]:
             raise NotImplementedError(
                 'JPK file version %s not supported (yet).' % version)
         curve_info = self._zip_translate_params(