Project

General

Profile

Gatan K2 Installation Notes » History » Version 3

Jim Pulokas, 11/29/2012 08:41 AM

1 1 Jim Pulokas
h1. Gatan K2 Installation Notes
2
3
This is a preliminary document.  Use at your own risk.
4
5
h2. Install the latest SerialEM  DigitalMicrograph plugin:  SEMCCD-GMS2-64.dll
6
7
This is the latest one that includes a socket interface.  Not sure if it is available from SerialEM download site yet, so you can download it from our redmine Files: http://emg.nysbc.org/projects/leginon/files
8
Copy it to C:\Program Files\Gatan\Plugins\
9
10
h2. Install 64 bit versions of the usual Python stuff
11
12
The 64 bit Python installer failes to update the windows registry properly if installed for "all users".  When installing other python packages, it will complain that it can't find python.  To solve this, install Python only for the current user.  Or search google for how to install for all users and then update the registry manually.
13
14
We have tested with:
15
16
* Python 2.7.3:  http://python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi
17
* PyWin32 extension:  pywin32-218.win-amd64-py2.7.exe, available here:  http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/
18
* wxPython:  http://downloads.sourceforge.net/wxpython/wxPython2.8-win64-unicode-2.8.12.1-py27.exe
19
20
Some of the other packages have no officially supported 64 bit versions, but they are easy to find with google.  To save the trouble, I dumped some of them in our Files:  http://emg.nysbc.org/projects/leginon/files including:
21
22
Tested:
23
24
* MySQL-python-1.2.3.win-amd64-py2.7.exe
25
* numextension-svn.win-amd64-py2.7.exe
26
* numpy-MKL-1.6.2.win-amd64-py2.7.exe
27
* PIL-fork-1.1.7.win-amd64-py2.7.exe
28
* scipy-0.11.0.win-amd64-py2.7.exe
29
(many of those originally came from http://www.lfd.uci.edu/~gohlke/pythonlibs/)
30
31
You do not need to install comarray or libcv.
32
33
h2. Install myami from svn trunk
34
35
Our usual routine lately is:
36
* install Tortoise SVN client
37
* check out myami trunk sandbox to wherever you want
38
* Set PYTHONPATH to you myami sandbox, rather than installing each package to site-packages.
39
40
h2. Configure myami
41
42
* create a folder:  C:\Program Files\myami\
43
* copy the templates for config files into the new folder and rename them without the ".template"
44
** sinedon.cfg - edit with your DB settings
45
** leginon.cfg - edit with your leginon settings
46 2 Jim Pulokas
** instruments.cfg - The camera modes are configured as separate cameras as follows.  Substitue your actual camera dimensions.  My example size is for the K2 simulation which may not be realistic.  Note that Super Resolution should be double the size of Linear and Counting.  Also note that zplane will be relative to any other cameras in your system.  Anything below K2 should have a lower zplane.<pre>[Gatan K2 Linear]
47
class: gatank2.GatanK2Linear
48
zplane: 50
49
width: 4096
50
height: 3968
51
52
[Gatan K2 Counting]
53
class: gatank2.GatanK2Counting
54
zplane: 50
55
width: 4096
56
height: 3968
57
58
[Gatan K2 Super]
59
class: gatank2.GatanK2Super
60
zplane: 50
61
width: 8192
62
height: 7936</pre>
63 3 Jim Pulokas
64
h2. Try it out
65
66
Need to start DigitalMicrograph first
67
68
Test of pyscopy without leginon:<pre>
69
import pyscope.gatank2
70
k = pyscope.gatank2.GatanK2Counting()
71
k.setExposureTime(200)
72
k.getImage()</pre>