Bug #2516
closedReference images saved as a different instrument than normal acquisition
0%
Description
This problem happens at FSU where Krios has different magnifications at different kV (or is it just energy-filtered (EF) and non-EF?) Scott made two instruments and switch them instrument.cfg from what I understand.
http://emg.nysbc.org/boards/6/topics/1667 describes a problem where the references can not be found when Leginon is restarted but o.k. if references were acquired in the same start-up.
This means that Leginon can find the references while they reside in memory but can not find them through database query.
I looked at their database, and found that the problem is limited to the instrument named Tecnai but not the one named TecnaiEFTEM. The references saved while as Tecnai (these are at 120 kV HT) are incorrectly recognized as for TecnaiEFTEM (seems to be those at 300 kV).
Now we know what the pattern is, we will need to find a solution
Files
Updated by Anchi Cheng about 11 years ago
- Assignee set to Scott Stagg
Scott,
Now that we know why references could not be found, I will need to know what you changed, if any, in pyscope, leginon, and what exactly you do to trick Leginon to think they are separate instrument.
Let me know if I should get these details from Duncan, not you.
Updated by Scott Stagg about 11 years ago
Hi Anchi,
I've added my modified tecnai.py and gatan.py to this issue. In the presets, we use Tecnai and Gatan for non-filtered imaging and TecnaiEFTEM and GatanGIF for energy filtered imaging. This system has worked for quite a while. I'm not sure why it stopped working. I did recently update Leginon, but its hard to say if the problem cropped up after that. The problem is happening consistently now, though.
Updated by Anchi Cheng about 11 years ago
I tried it on our F20 but by using subclass
class TecnaiTest(Tecnai): name='TecnaiTest'
instead of copying the whole code. It worked fine even if I leave both classes in instruments.cfg
Since I can't reproduce the bug, I will you or your student to try out the following:
The instrument configuration settings gui in Correction node often get stuck on the previous settings. If you go into the settings, and go through the routine of selecting a different camera (None in this case), and then select the one you really want, it will get it right. It is a timing issue. See if by faithfully doing so if you still have the problem. Check the result with this python script instead of restarting Leginon to save time:
form leginon import leginondata normdata = leginondata.NormImageData().query(results=1)[0] print normdata['scope']['tem'].dbid, normdata['scope']['tem']['name']
If the name corresponds to what you want, then it does work.
Updated by Anchi Cheng about 11 years ago
fixes for bug #2517 might fix this, too.
Updated by Scott Stagg about 11 years ago
- Assignee changed from Scott Stagg to Anchi Cheng
Your suggestion worked. We manually changed the scope to None then back to Tecnai and the camera to None then back to Gatan, and it subsequently fixed the db query. Your bug fix for ref#2517 permanently fixed the problem. After updating, we no longer had to switch the scope and camera to None and back.
Updated by Anchi Cheng almost 11 years ago
- Status changed from Merge to Closed
No one to review. Tested.