(generalvclamp.py) catching all exceptions in plotmanip_flatten so to avoid unnecessa...
authordevicerandom <devnull@localhost>
Wed, 2 Jul 2008 17:39:50 +0000 (17:39 +0000)
committerdevicerandom <devnull@localhost>
Wed, 2 Jul 2008 17:39:50 +0000 (17:39 +0000)
generalvclamp.py
hooke_cli.py

index 482446540f3d889d9d6e493ea5eab49143a314b8..4f0f0a0b12e9cd2dc8543d4df425b9412db1f6e1 100644 (file)
@@ -168,8 +168,9 @@ class generalvclampCommands:
                     valn[exponent]=sp.polyfit(x_ext,y_ext,exponent)
                     yrn[exponent]=sp.polyval(valn[exponent],x_ret)
                     errn[exponent]=sp.sqrt(sum((yrn[exponent]-y_ext)**2)/float(len(y_ext)))
-                except TypeError:
+                except Exception,e:
                     print 'Cannot flatten!'
+                    print e
                     return plot
 
             best_exponent=errn.index(min(errn))
index d5aa3104d62082f1e95d379a414d78741040ad25..3516823938356f23bc7c24cb399264115eedf6d0 100755 (executable)
@@ -791,8 +791,7 @@ Syntax copylog [directory]
                     print 'OSError. Cannot copy file. Perhaps you gave me a wrong directory?'
 
 #OUTLET management
-
-
+#-----------------
     def do_outlet_show(self,args):
         '''OUTLET_SHOW
         ---------
@@ -818,10 +817,6 @@ Syntax copylog [directory]
         else:
             self.outlet.delete(args)
 
-
-
-
-
 #OS INTERACTION COMMANDS
 #-----------------    
     def help_dir(self):