Older k2 dmsem configuration » History » Version 1
Anchi Cheng, 08/14/2018 08:41 PM
1 | 1 | Anchi Cheng | h1. Older k2 dmsem configuration |
---|---|---|---|
2 | |||
3 | h2. (Version 3.0) Change Flag in pyscope/dmsem.py if you have DM 2.30 version and requires flip/rotation to give the Leginon orientation. |
||
4 | |||
5 | In standard python site-package installation, this file is at C:\Python27\Lib\site-packages\pyscope\dmsem.py |
||
6 | |||
7 | Find this line near the top: |
||
8 | <pre> |
||
9 | isDM230 = False |
||
10 | </pre> |
||
11 | Change it to |
||
12 | <pre> |
||
13 | isDM230 = True |
||
14 | </pre> |
||
15 | |||
16 | h2. (Version 3.1) Define local configuration |
||
17 | |||
18 | h2. In C:\Python27\Lib\site-packages\pyscope/dmsem.py |
||
19 | |||
20 | <pre> |
||
21 | # DM Version |
||
22 | DM_VERSION = '2.30.542.0' |
||
23 | # the value in DM camera config |
||
24 | K2_CONFIG_FLIP = True |
||
25 | # multiple of 90 degrees (i.e. put 1 if 90 degrees, 3 if 270 degrees) |
||
26 | K2_CONFIG_ROTATE = 3 |
||
27 | # raw frame base directory. Use '\\' as path separator |
||
28 | RAW_FRAME_DIR = 'D:\\frames\\' |
||
29 | </pre> |
||
30 | |||
31 | 1. Find DM_Version in DM gui under its menu bar : /Help/About DigitalMicrograph |
||
32 | 2. Fill in K2_CONFIG_FLIP and K2_CONFIG_ROTATE according to DM gui under its menu bar: /Camera/Configure Camera. The comment line above the value setting explains the meaning of the value. |
||
33 | 3. Enter the drive the directory where raw frames will be saved. |