Project

General

Profile

How to Update from v31 (Instrument Windows Computer) » History » Version 3

Anchi Cheng, 09/06/2016 10:20 AM

1 1 Anchi Cheng
h1. How to Update from v31 (Instrument Windows Computer)
2
3
The changes to v3.2 DOES require upgrade at the microscope and camera computers.
4
5
See [[Installation Troubleshooting]] and  "Leginon Bulletin Board":http://emg.nysbc.org/projects/leginon/boards  searching
6
for "install" if you run into problems.
7
8
h2. Download myami-3.2 source code
9
10
h3. Check out SVN Source Files from the repository
11
12
Assuming that you have installed some kind of svn client such as TortoiseSVN "http://tortoisesvn.tigris.org/", you can use your mouse to do the following
13
* Create myami3.2 directory somewhere at your convenience
14
* Change directory into myami3.2
15
* Right-click the mouse botton in this directory window and select Tortoise svn
16
Checkout in the menu: !http://emg.nysbc.org/software/leginon/images/images/svnmenu.png!
17
* Set up svn checkout window like this, but check out from http://emg.nysbc.org/svn/myami/branches/myami-3.2 and save it to myami3.2 folder !http://emg.nysbc.org/software/leginon/images/images/svnco.png!
18
19
Otherwise, you can copy the files from your linux myami-3.2 source.
20
21
h2. Move your existing packages to a backup directory (Optional):
22
23
At the beginning of the syscheck.py output, the location of the exisiting Leginon folder is shown. Although new installation overwrite the old in most cases, problem has been observed in the past. Therefore, it is best to remove the old files from the path before new installation.  Better yet, copy into a backup folder because we need some configuration files from them.
24
You may find these folders here:
25
|leginon|
26
|pyscope|
27
|sinedon|
28
|pyami|
29
30
For example, your installed Leginon folder is at C:\\python27\Lib\site-packages\leginon
31
32
<pre>Go to C\\python27\site-packages
33
Create Leginon3_1_backup folder
34
Move Leginon folder into Leginon3_1_backup folder</pre>
35
36
h2. Install subpackages you downloaded from NRAMM svn repository.  *You should not install numextension, libcv and comarray using this instruction*
37
38
* Start a command line Window from Start Menu
39
40
* Reinstall the package in EACH of the following folders using the included setup.py
41
|leginon|
42
|pyscope|
43
|sinedon|
44
|pyami|
45
46
<pre>cd Your_Download_Place\myami3.2_folder
47
c:\\python27\python.exe setup.py install</pre>
48
49
{{include(locate global config directory on Windows)}}
50
51
h2. copy the old config files to the global location if you still use local files
52
53 3 Anchi Cheng
h2. Install comtypes on FEI scope controlling computer
54
55
We have switched to use comtypes exclusively in 3.2.
56
57
See [[FEI_TecnaiTitan_installation_specifics|32-bit]] or [[FEI_Talos_installation_specifics|64-bit]] computer instruction depending on your system although know that to communicate with the instrument, the 32-bit python and subpackages are always installed.
58
59 1 Anchi Cheng
h2. Enter Tietz PXL camera imaging size in instruments.cfg if needed in this format:
60
61
<pre>
62
[camera]
63
tietz.TietzPXL
64
zplane:10
65
height: 2048
66
width: 2048
67
</pre>
68
69
h2. About [[TEM Scripting Beam Tilt Calibration]]
70
71
* If you have done [[TEM_Scripting Beam Tilt Calibration]] and have changed the scale factor in tecnai.py, you should copy the value to your new installation.
72
73
h2. Gatan K2 Summit camera
74
75
We moved the configuration from dmsem.py to a configuration file parsed with standard parser.
76
77
# Check your 3.1 pyscope/dmsem.py for the old configuration needed for the camera to indicate its DM version, orientation, and file saving location.
78
# Copy Your_Download_Place\myami3.2\pyscope\dmsem.cfg.template to the standard myami config path C:\Program File\myami\dmsem.cfg
79
# Modify dmsem.cfg according to your old configuration
80
  More details in [[Gatan_K2_installation_and_setup#(Version-3.2)-Define-local-configuration-in-dmsemcfg]]
81
82
<pre>
83
### general dm configurations
84
[dm]
85
# DM Version
86
DM_VERSION = 2.31.734.0
87
88
### K2 Summit configuration through SERIALEMCCD plugin
89
[k2]
90
# Camera ID
91
CAMERA_ID = 0
92
# the value in DM camera config
93
FLIP = True
94
# multiple of 90 degrees (i.e. put 1 if 90 degrees, 3 if 270 degrees)
95
ROTATE = 1
96
# raw frame base directory. Use '\' as path separator
97
RAW_FRAME_DIR = D:\frames\
98
# max number of frames to sum in order to return early
99
EARLY_RETURN_FRAME_COUNT = 0
100
</pre>
101
102
h2. Gatan K2 Summit camera changes upon GMS upgrade
103
104
A change in GMS 2.3.1 and SerialEMCCD which we use at the backend causes the frame saved at different orientation from the reference images saved in standard Leginon orientation. An up-down flip is required in general.
105
106
You must change dmsem.py to reflect this:
107
108 2 Anchi Cheng
GMS upgrade to 3.0 is now tested in the field, and confirmed that functions are not affected.
109 1 Anchi Cheng
110
______
111
112
[[How_to_Update_from_v30_(Linux)|< How to Update from v3.0 (Linux) ]] 
113
114
115
______