How to Update from v22 (Instrument Windows Computer) » History » Version 1
Anchi Cheng, 12/13/2013 06:15 PM
1 | 1 | Anchi Cheng | h1. How to Update from v22 to 3.0 (Instrument Windows Computer) |
---|---|---|---|
2 | |||
3 | The changes to v3.0 DOES require upgrade at the microscope and camera computers. |
||
4 | |||
5 | We have compiled all pre-compiled installer with python 2.7 now. Therefore, you do best by following the [[Installation_on_the_instrument_computers|complete installation instruction]] until you reach the part for configuration. |
||
6 | |||
7 | See [[Installation Troubleshooting]] and "Leginon Bulletin Board":http://emg.nysbc.org/projects/leginon/boards searching |
||
8 | for "install" if you run into problems. |
||
9 | |||
10 | h2. copy the old config files to the new location. |
||
11 | |||
12 | *If you want to avoid copying cfg files to new installation in the future, copy them from where you had it in the python2.5 2.2 installation to the global config directory* |
||
13 | |||
14 | {{include(locate global config directory on Windows)}} |
||
15 | |||
16 | |_config file_|likely location in 2.2 installation if not in your home directory| |
||
17 | |sinedon.cfg|C:\\python25\Lib\site-packages\sinedon\| |
||
18 | |leginon.cfg|C:\\python25\Lib\site-packages\leginon\config\| |
||
19 | |instruments.cfg|C:\\python25\Lib\site-packages\pyscope\| |
||
20 | |||
21 | h2. modify Tietz PXL camera imaging size if you did so before for Leginon 2.2 |
||
22 | |||
23 | *You should not copy the old one in this case since the file has been changed* |
||
24 | * Go to C:\Python27\Lib\site-packages\pyscope\ |
||
25 | |||
26 | * Edit tietz.py with a plain text editor |
||
27 | |||
28 | |||
29 | * Find the lines: |
||
30 | |||
31 | <pre> def getCameraSize(self): |
||
32 | # {'type': dict, 'values': {'x': {'type': int}, 'y': {'type': int}}}} |
||
33 | x = self._getParameterValue('cpTotalDimensionX') |
||
34 | y = self._getParameterValue('cpTotalDimensionY') |
||
35 | return {'x': x, 'y': y} |
||
36 | </pre> |
||
37 | |||
38 | * Change the last line to: |
||
39 | |||
40 | <pre> return {'x': 2048, 'y': 2048}</pre> |
||
41 | |||
42 | h2. About [[TEM Scripting Beam Tilt Calibration]] |
||
43 | |||
44 | * 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. |
||
45 | |||
46 | |||
47 | ______ |
||
48 | |||
49 | [[How_to_Update_from_v22_(Linux)|< How to Update from v2.2 (Linux) ]] |
||
50 | |||
51 | |||
52 | ______ |