Correct number of digits of many output, improvement in the utility 'cut' and 'txt'.
[hooke.git] / review.py
index 636eb36e2dbdc105369a92521db6958b89e53ba0..7d5e4b13e304167c94984f7018fd3c8366e52701 100644 (file)
--- a/review.py
+++ b/review.py
@@ -82,7 +82,8 @@ class reviewCommands:
                        print 'WARNING: maybe you want to finish!'
                        break
                nextitem=curveset[i]
-               nextitem.identify(self.drivers)
+               if not nextitem.identify(self.drivers):
+                       continue                
                nextplot=self.plotmanip_correct(nextitem.curve.default_plots()[0],nextitem)
                nextvect=nextplot.vectors
                nextitem.curve.close_all()
@@ -127,7 +128,13 @@ class reviewCommands:
                                        
            c+=10
 
-       print 'Kept '+str(len(keep_list))+' curves from '+str(min(c+i+1,len(self.current_list)))
+       #FIXME I don't know why the print below gives errors sometimes
+       try:
+               print 'Kept '+str(len(keep_list))+' curves from '+str(min(c+i+1,len(self.current_list)))
+       except:
+               print 'Display error, never mind, we continue. Below the amount of kept and total curves:'
+               print str(len(keep_list))
+               print str(len(self.current_list))
 
        allok=0  #flag to keep from losing all the work in a slight mistake
        while allok==0: