Gatan K2 Installation Notes » History » Version 18
Anchi Cheng, 01/07/2014 10:10 PM
1 | 1 | Jim Pulokas | h1. Gatan K2 Installation Notes |
---|---|---|---|
2 | |||
3 | This is a preliminary document. Use at your own risk. |
||
4 | |||
5 | 17 | Anchi Cheng | h2. Install the latest SerialEM DigitalMicrograph plugin: SEMCCD-GMS2-64.dll |
6 | 6 | Jim Pulokas | |
7 | 17 | Anchi Cheng | {{include(Install_SerialEM_DigitalMicrograph_plugin)}} |
8 | 6 | Jim Pulokas | |
9 | 1 | Jim Pulokas | h2. Install 64 bit versions of the usual Python stuff |
10 | |||
11 | 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. |
||
12 | |||
13 | We have tested with: |
||
14 | |||
15 | * Python 2.7.3: http://python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi |
||
16 | * PyWin32 extension: pywin32-218.win-amd64-py2.7.exe, available here: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/ |
||
17 | * wxPython: http://downloads.sourceforge.net/wxpython/wxPython2.8-win64-unicode-2.8.12.1-py27.exe |
||
18 | |||
19 | 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: |
||
20 | |||
21 | Tested: |
||
22 | |||
23 | * MySQL-python-1.2.3.win-amd64-py2.7.exe |
||
24 | * numextension-svn.win-amd64-py2.7.exe |
||
25 | * numpy-MKL-1.6.2.win-amd64-py2.7.exe |
||
26 | * PIL-fork-1.1.7.win-amd64-py2.7.exe |
||
27 | * scipy-0.11.0.win-amd64-py2.7.exe |
||
28 | (many of those originally came from http://www.lfd.uci.edu/~gohlke/pythonlibs/) |
||
29 | |||
30 | You do not need to install comarray or libcv. |
||
31 | |||
32 | h2. Install myami from svn trunk |
||
33 | |||
34 | Our usual routine lately is: |
||
35 | * install Tortoise SVN client |
||
36 | * check out myami trunk sandbox to wherever you want |
||
37 | * Set PYTHONPATH to you myami sandbox, rather than installing each package to site-packages. |
||
38 | |||
39 | h2. Configure myami |
||
40 | |||
41 | * create a folder: C:\Program Files\myami\ |
||
42 | * copy the templates for config files into the new folder and rename them without the ".template" |
||
43 | ** sinedon.cfg - edit with your DB settings |
||
44 | ** leginon.cfg - edit with your leginon settings |
||
45 | 7 | Anchi Cheng | ** instruments.cfg - The camera modes are configured as separate cameras as follows. 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. |
46 | 18 | Anchi Cheng | *In addition, to make the images acquired from the camera to have the [[Leginon Image Orientation|standard Leginon orientation]], the camera configuration in Digital Micrograph will need a rotation and flip (270 degree rotation and a flip around the vertical axis on our camera). Therefore, the height becomes longer than width*. |
47 | 7 | Anchi Cheng | <pre>[Gatan K2 Linear] |
48 | 13 | Anchi Cheng | class: dmsem.GatanK2Linear |
49 | 2 | Jim Pulokas | zplane: 50 |
50 | 12 | Anchi Cheng | width: 3710 |
51 | height: 3838 |
||
52 | 2 | Jim Pulokas | |
53 | [Gatan K2 Counting] |
||
54 | 13 | Anchi Cheng | class: dmsem.GatanK2Counting |
55 | 2 | Jim Pulokas | zplane: 50 |
56 | 12 | Anchi Cheng | width: 3710 |
57 | height: 3838 |
||
58 | 2 | Jim Pulokas | |
59 | [Gatan K2 Super] |
||
60 | 13 | Anchi Cheng | class: dmsem.GatanK2Super |
61 | 2 | Jim Pulokas | zplane: 50 |
62 | 12 | Anchi Cheng | width: 7420 |
63 | height: 7676</pre> |
||
64 | 3 | Jim Pulokas | |
65 | h2. Try it out |
||
66 | |||
67 | Need to start DigitalMicrograph first |
||
68 | |||
69 | 4 | Jim Pulokas | Test pyscopy without leginon from python command line:<pre> |
70 | 13 | Anchi Cheng | import pyscope.dmsem |
71 | k = pyscope.dmsem.GatanK2Counting() |
||
72 | 3 | Jim Pulokas | k.setExposureTime(200) |
73 | 1 | Jim Pulokas | k.getImage()</pre> |
74 | 4 | Jim Pulokas | |
75 | Then try Leginon. |
||
76 | 1 | Jim Pulokas | |
77 | 15 | Anchi Cheng | [[Using Gatan K2 Summit in Leginon]] |