From: W. Trevor King Date: Wed, 8 Sep 2010 14:39:57 +0000 (-0400) Subject: Don't assume you know which sJPK egments will be created. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6bbbe9039ce2d96cde4c88201a587b915ad7401e;p=hooke.git Don't assume you know which sJPK egments will be created. --- 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: