correct parsing of args of peaks command; Fixes issue 0017
authordevicerandom <devnull@localhost>
Thu, 8 Oct 2009 18:45:14 +0000 (18:45 +0000)
committerdevicerandom <devnull@localhost>
Thu, 8 Oct 2009 18:45:14 +0000 (18:45 +0000)
flatfilts.py

index b287527efb0212e512290e962d714460461ce4a1..3e9f9c8979b287a096140de64ead608ee8f207eb 100755 (executable)
@@ -227,7 +227,8 @@ class flatfiltsCommands:
         try:
             abs_devs=float(args)
         except:
-            pass
+            print 'Wrong argument, using config value'
+            abs_devs=float(self.convfilt_config['mindeviation'])
                         
         defplots=self.current.curve.default_plots()[0] #we need the raw, uncorrected plots