From 6bbbe9039ce2d96cde4c88201a587b915ad7401e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 8 Sep 2010 10:39:57 -0400 Subject: [PATCH] Don't assume you know which sJPK egments will be created. --- hooke/driver/jpk.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hooke/driver/jpk.py b/hooke/driver/jpk.py index bcacd85..2f7b913 100644 --- a/hooke/driver/jpk.py +++ b/hooke/driver/jpk.py @@ -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: -- 2.26.2