How to Update from v20 (Microscope Windows Computer) » History » Version 4
Anchi Cheng, 10/29/2010 07:38 PM
1 | 1 | Anchi Cheng | h1. How to Update from v20 (Microscope Windows Computer) |
---|---|---|---|
2 | |||
3 | The changes from v2.0 does not require upgrade at the microscope but is recommended. |
||
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. Packages required from NRAMM |
||
9 | |||
10 | 3 | Anchi Cheng | All Leginon (and Appion) packages distributed from NRAMM are under one svn control. |
11 | 1 | Anchi Cheng | |
12 | 3 | Anchi Cheng | Recommended minimal subpackage upgrade: |
13 | 1 | Anchi Cheng | |pyscope|setting of beam tilt value scale factor| |
14 | |||
15 | 2 | Anchi Cheng | h2. Download myami-2.1 source code |
16 | 1 | Anchi Cheng | |
17 | h3. Check out SVN Source Files from the repository |
||
18 | |||
19 | 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 |
||
20 | * Create myami2.1 directory somewhere at your convenience |
||
21 | * Change directory into myami2.1 |
||
22 | * Right-click the mouse botton in this directory window and select Tortoise svn |
||
23 | Checkout in the menu: !http://emg.nysbc.org/software/leginon/images/images/svnmenu.png! |
||
24 | * Set up svn checkout window like this, but check out from http://emg.nysbc.org/svn/myami/branches/myami-2.1 and save it to myami2.1 folder !http://emg.nysbc.org/software/leginon/images/images/svnco.png! |
||
25 | |||
26 | 2 | Anchi Cheng | Otherwise, you can copy the files from your linux myami-2.1 source. |
27 | 1 | Anchi Cheng | |
28 | h2. Perform system check if you can't remember where you have installed your Leginon before. |
||
29 | |||
30 | * Go to ~/myami2.1/leginon |
||
31 | * Double click on syscheck.py |
||
32 | |||
33 | You should have all the supporting packages installed for v2.0. If you see any lines like "*** Failed...", then you have something missing. Otherwise, everything should result in "OK". |
||
34 | |||
35 | h2. Move your existing packages to a backup directory (Optional): |
||
36 | |||
37 | 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. |
||
38 | You may find these folders here: |
||
39 | |leginon| |
||
40 | |pyscope| |
||
41 | |sinedon| |
||
42 | |pyami| |
||
43 | |imageviewer| |
||
44 | |||
45 | For example, your Leginon folder is at C:\\python25\Lib\site-packages\leginon |
||
46 | |||
47 | <pre>Go to C\\python25\site-packages |
||
48 | Create Leginon2_0_backup folder |
||
49 | Move Leginon folder into Leginon2_0_backup folder</pre> |
||
50 | |||
51 | h2. Install subpackages you downloaded from NRAMM svn repository. *You should not install numextension, libcv and comarray using this instruction* |
||
52 | |||
53 | * Start a command line Window from Start Menu |
||
54 | |||
55 | * Reinstall the package in EACH of the following folders using the included setup.py |
||
56 | |leginon| |
||
57 | |pyscope| |
||
58 | |sinedon| |
||
59 | |pyami| |
||
60 | |imageviewer| |
||
61 | |||
62 | <pre>cd Your_Download_Place\myami2.1_folder |
||
63 | c:\\python25\python.exe setup.py install</pre> |
||
64 | |||
65 | * run syscheck.py again to make sure you have everything. |
||
66 | |||
67 | h2. Copy your Leginon2.0 sinedon.cfg to the new installation if you have moved the Leginon2.0 installation into its backup. |
||
68 | |||
69 | * Find your sinedon.cfg. Depending on your previous setting, look in the directories listed here in order: |
||
70 | *your home directory as described in syscheck.py |
||
71 | *The sinedon directory where it is called from. If unsure, start python command line and type these to find out: |
||
72 | <pre>python> import sinedon |
||
73 | python> sinedon</pre> |
||
74 | |||
75 | * If sinedon.cfg reside in the installed sinedon subpackage, you should copy it from your Leginon2.0 backup to the new installation. |
||
76 | <pre>go to C:\\python25\Lib\site-packages\ |
||
77 | copy Leginon_2_0_backup\sinedon\sinedon.cfg into the new sinedon folder |
||
78 | </pre> |
||
79 | |||
80 | h2. Copy your Leginon2.0 Instruments.cfg to the new installation if you have moved Leginon2.0 installation into its backup: |
||
81 | |||
82 | * instruments.cfg is in the pyscope folder of your Leginon 2.0 backup to the new pyscope folder under site-packages directory. |
||
83 | |||
84 | h2. modify Tietz PXL camera imaging size if you did so before for Leginon 2.0 |
||
85 | |||
86 | *You should not copy the old one in this case since the file has been changed* |
||
87 | * Go to C:\Python25\Lib\site-packages\pyscope\ |
||
88 | |||
89 | * Edit tietz.py with a plain text editor |
||
90 | |||
91 | |||
92 | * Find the lines: |
||
93 | |||
94 | <pre> def getCameraSize(self): |
||
95 | # {'type': dict, 'values': {'x': {'type': int}, 'y': {'type': int}}}} |
||
96 | x = self._getParameterValue('cpTotalDimensionX') |
||
97 | y = self._getParameterValue('cpTotalDimensionY') |
||
98 | return {'x': x, 'y': y} |
||
99 | </pre> |
||
100 | |||
101 | * Change the last line to: |
||
102 | |||
103 | <pre> return {'x': 2048, 'y': 2048}</pre> |
||
104 | |||
105 | 4 | Anchi Cheng | h2. Perform [[TEM Scripting Beam Tilt Calibration]] in case your TEM Scripting requires non-unity scale factor |
106 | 1 | Anchi Cheng | |
107 | ______ |
||
108 | |||
109 | [[How_to_Update_from_v20_(Linux)|< How to Update from v2.0 (Linux)]] |
||
110 | |||
111 | |||
112 | ______ |