leginon-org / leginon-redmine-archive

1 stars 0 forks source link

Ace 1 crashing #2916

Open leginonbot opened 7 months ago

leginonbot commented 7 months ago

Author Name: Scott Stagg (Scott Stagg) Original Redmine Issue: 2916, https://emg.nysbc.org/redmine/issues/2916 Original Date: 2014-08-28 Original Assignee: Scott Stagg


Ace 1 is now crashing with a bug where it won't run unless a CTF value is already in the database. If we try to use ACE 1 to estimate micrographs that have not been estimated yet, it crashes with the error below:

Traceback (most recent call last):
  File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/bin/pyace.py", line 246, in <module>
    imgLoop.run()
  File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/appionLoop2.py", line 90, in run
    results = self.loopProcessImage(imgdata)
  File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/appionLoop2.py", line 140, in loopProcessImage
    return self.processImage(imgdata)
  File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/bin/pyace.py", line 113, in processImage
    acevalues = apMatlab.runAce(self.matlab, imgdata, self.params)
  File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/apMatlab.py", line 67, in runAce
    bestconf = ctfdb.calculateConfidenceScore(bestctfvalue)
  File "/panfs/storage.local/imb/stagg/software/myami_dev/appion/appionlib/apCtf/ctfdb.py", line 122, in calculateConfidenceScore
    conf1 = ctfdata['confidence']
TypeError: 'NoneType' object is unsubscriptable

If we estimate with a different estimator first, then ACE1 will work. This is a heavily used program at FSU, so a quick fix would be much appreciated.

leginonbot commented 7 months ago

Original Redmine Comment Author Name: Neil Voss (@vosslab) Original Date: 2014-09-02T12:39:43Z


Sorry, I was away from work over the long weekend. This r18551 should fix it. I do not have Matlab to test this.