Testing pyscope instrument » History » Revision 3
Revision 2 (Neil Voss, 03/02/2012 10:22 AM) → Revision 3/5 (Jim Pulokas, 08/27/2013 03:34 PM)
h1. Testing pyscope instrument script functions When something goes wrong with Leginon communicating with On the TEM or camera, it is often most helpful to test instrument host of the low level interface to the instrument. For example, on the instrument, a TEM host computer, start Python that uses Tecnai class, for example, you can launch python command line window and run the following try to get create an instance of the current magnification:<pre>import pyscope.tecnai instrument and then call a function such as getMagnifications in that like this: <pre> import pyscope.registry s = pyscope.tecnai.Tecnai() pyscope.registry.getClass('Tecnai')() s.getMagnification() s.getMagnifications() </pre>