Bug #4023
open
  
    
    
  
makeDEAlignedSum fails after one image
 
        
        Added by Carl Negro over 9 years ago.
        Updated over 9 years ago.
        
Affected Version:
Appion/Leginon 3.3
 
  
  
  
  Description
  
  makeDEAlignedSum throws a keyError inside appionLoop2.py, that self.stats['totalcount'] is not found, even though it was declared previously in run(). Bill will queue up more targets soon so we can replicate the original error.
   
 
  Related issues
  1 (1 open — 0 closed)
 
 
  
  
    
    
    
    I think the problem is that I declared self.stats['totalcount'] = 0 in run function of AppionLoop class which AppionPBS has overwritten.  Since AppionPBS.run does not declare totalcount, but AppionPBS still calls _printSummary defined in AppionLoop,  Therefore it broke.
	The fix in r19580 declares the same variable again in _printSummary which is why it worked, but this makes it never print out the remaining time.
	To fix this properly, self.stats['totalcount'] need to be set during class initialization with other self.stats items.  This is in basicScript.py
 
   
  
  
    
    
    
    
       - Affected Version changed from Appion/Leginon 3.2 to Appion/Leginon 3.3
 
   
  
  
    
    
    
    
       - Related to Bug #4018: appionLoop count remaining image wrong when images are rejected while processing added
 
   
  
 
  
  
  
 
Also available in:  Atom
  PDF