Don't assume you know which sJPK egments will be created.
authorW. Trevor King <wking@drexel.edu>
Wed, 8 Sep 2010 14:39:57 +0000 (10:39 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 8 Sep 2010 14:39:57 +0000 (10:39 -0400)
hooke/driver/jpk.py

index bcacd85e288f8494b4fe48d285eb7a536ac459e5..2f7b9136cbe85e893e18e5b799a6cdc04cf5acbd 100644 (file)
@@ -82,11 +82,6 @@ class JPKDriver (Driver):
             raise NotImplementedError(
                 'JPK file version %s not supported (yet).'
                 % zip_info['file-format-version'])
-        for name in ['approach', 'retract']:
-            if len([s for s in segments if s.info['name'] == name]) == 0:
-                raise ValueError(
-                    'No segment for %s in %s, only %s'
-                    % (name, path, [s.info['name'] for s in segments]))
         curve_info = self._zip_translate_params(zip_info,
                                                 segments[0].info['raw info'])
         for segment in segments: