Bug #4505
closedapCtf crashes on bad display rather than moving on
0%
Description
This happens from time to time that one of the printError statement is hit. While this is useful in debug, there need to be a general mechanism for appion script to move on in production mode.
These images would be thrown out at the end, but a run done during automated data collection should move on since the it needs to keep up with data collection.
Updated by Anchi Cheng about 8 years ago
One possibility is to put them in
if self.debug:
An example of this is in normalizeCTF:
if self.res80 < 6 and self.conf3010 < 0.3: print(numpy.around(confdata[:15],3)) apDisplay.printError("confendence below 0.3 and resolution better than 6A")
Updated by Anchi Cheng about 8 years ago
- Subject changed from apCtf crashes on bad display even though rather than moving on to apCtf crashes on bad display rather than moving on
Updated by Neil Voss about 8 years ago
This is to avoid false positive fits. What it needs to do is return None
or something, so it is does upload the values to the database.
I initially put the crash in, because it usually meant something was wrong with the program.
Updated by Neil Voss about 8 years ago
- Assignee changed from Neil Voss to Anchi Cheng
Updated by Anchi Cheng about 8 years ago
There are many places that does this in the same module. Do you suggestt me to go through them one by one ? You should be better in judging which should be fatal. In addition, I start this issue to bounce ideas on how to make it possible to have both needs meet.
Updated by Neil Voss about 8 years ago
Okay, I see what you mean.
I am okay with adding self.debug flag, my test suite runs apCtf on 1000's of images looking for these fails and I do not reach them, so I like to know when they occur. Of course, I do not have time to work on any fix at the moment.
Updated by Anchi Cheng about 8 years ago
- Assignee changed from Anchi Cheng to Neil Voss
pushed two cases of this using self.debug is True
282249e0
Updated by Anchi Cheng about 8 years ago
- Related to Bug #4506: ctfinsert.py rejects angle of stigmation happens to be near 90 degrees. added
Updated by Anchi Cheng about 8 years ago
1d14cf39 add to self.debug failure when conf 30/10 failed to give back a number from scipy. The actually except happens when it is inserted to database.
Most problems come from images with defocus close to zero and from phase plate data. WIth -0.5 um defocus that I use with phase plate, ctfdisplay fails to create graph about 90% of the time.
Updated by Anchi Cheng almost 7 years ago
- Status changed from Assigned to Closed