From 1c9f3cc24c9a66b5ecc8f10b2155db2f030efb16 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 23 Aug 2010 10:29:14 -0400 Subject: [PATCH] Extend JPK v0.5 parsing back to 0.3 and 0.4 file formats. On Mon, Aug 23, 2010 at 02:15:08PM +0200, Michael Haggerty wrote: > The fundamentals of our file format has not changed much since it was > introduced. Most of the changes involve metadata, such as how we > describe force spectroscopy scanning patterns, that are not even > described in the document that I sent you. --- hooke/driver/jpk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooke/driver/jpk.py b/hooke/driver/jpk.py index 6c95fe9..3cbe1df 100644 --- a/hooke/driver/jpk.py +++ b/hooke/driver/jpk.py @@ -75,7 +75,7 @@ class JPKDriver (Driver): for i in range(len([p for p in f.namelist() if p.endswith('segment-header.properties')])): segments.append(self._zip_segment(f, path, info, zip_info, i)) - if zip_info['file-format-version'] not in ['0.5']: + if zip_info['file-format-version'] not in ['0.3', '0.4', '0.5']: raise NotImplementedError( 'JPK file version %s not supported (yet).' % zip_info['file-format-version']) -- 2.26.2