How to Update from v35 (Instrument Windows Computer) » History » Version 3
Anchi Cheng, 09/21/2022 12:05 PM
1 | 1 | Anchi Cheng | h1. How to Update from v35 (Instrument Windows Computer) |
---|---|---|---|
2 | |||
3 | h2. Preparation |
||
4 | |||
5 | Pymysql replaces MySQL-python in this version. There is no Windows installer exe file for this. |
||
6 | |||
7 | You can find [[https://emg.nysbc.org/attachments/20299/PyMySQL-0.10.1-py2.py3-none-any.whl|PyMySQL-0.10.1-py2.py3-none-any.whl]] under Files tab at this redmine site. Copy the file to the microscope scope if you don't have internet access on the instruments. |
||
8 | |||
9 | You will need these myami subpackages updated. |
||
10 | |||
11 | |_.Name:|_.Purpose:| |
||
12 | | leginon|modular TEM image acquisition| |
||
13 | | pyami|general functions| |
||
14 | | myami_test|test suite that is called before starting leginon| |
||
15 | | sinedon|database interaction| |
||
16 | | pyscope|microscope control and monitoring| |
||
17 | |||
18 | h2. No internet access - copy from linux Leginon workstation the python files. |
||
19 | |||
20 | If your Windows computer has no access to internet, copy from your linux processing server the git clone of myami super package of the right branch for the installation which you used to upgrade there. |
||
21 | |||
22 | See [[Download_Appion_Files|Acquiring NRAMM GIT Repository files]] for different examples and match the repository with what you do on the Linux side. |
||
23 | |||
24 | *OR* |
||
25 | |||
26 | h2. With internet access |
||
27 | |||
28 | h3. Clone the proper branch from git repository. You will want myami-3.6 |
||
29 | |||
30 | {{include(git_for_windows_cloning)}} |
||
31 | |||
32 | h2. Install |
||
33 | |||
34 | 2 | Anchi Cheng | h3. install pymysql |
35 | |||
36 | <pre>cd path_to\PyMySQL-0.10.1-py2.py3-none-any.wh |
||
37 | C:\Python27\Scripts\pip.exe install PyMySQL-0.10.1-py2.py3-none-any.wh |
||
38 | </pre> |
||
39 | 3 | Anchi Cheng | |
40 | 2 | Anchi Cheng | * If you have older python2.7 mirnor method, pip might not be available. In this case, it is best reinstall newer version. We know it needs to at least 2.7.11 |
41 | |||
42 | 1 | Anchi Cheng | h3. Move the cloned folder according to your environment variable PYTHONPATH if you use that during the original installation. |
43 | |||
44 | *OR* |
||
45 | |||
46 | h3. Install to default python site-packages |
||
47 | |||
48 | * Start a command line Window from Start Menu |
||
49 | |||
50 | * Install the package in each folder (must starts with pyami) |
||
51 | <pre>cd path_to\myami-VERSION\myami\pyami |
||
52 | c:\\python27\python.exe setup.py install</pre> |
||
53 | Then continue with the other packages, replacing pyami with the package name. See the packages listed above for the complete list. |
||
54 | |||
55 | h2. Configure |
||
56 | |||
57 | [[locate global config directory on Windows]] |
||
58 | |||
59 | |||
60 | h1. FEI scopes |
||
61 | |||
62 | h2. fei.cfg |
||
63 | |||
64 | |||
65 | Compare yours_git_clone\pyscope\fei.cfg.template with your active fei.cfg. Especially if you plan to use new featured instruments or have had a TEMServer upgrade to recent versions. |
||
66 | |||
67 | h3. If you set for your Talos column |
||
68 | |||
69 | <pre> |
||
70 | FORCE_NORMALIZE_ALL_LENS_AFTER_MAG_SETTING = True |
||
71 | </pre> |
||
72 | |||
73 | please change it to use |
||
74 | |||
75 | <pre> |
||
76 | FORCE_NORMALIZE_ALL_AFTER_SETTING = True |
||
77 | </pre> |
||
78 | |||
79 | This is more generalized and produces better results. See Issue #7076 for more details. |
||
80 | |||
81 | h1. GatanK2Summit or K3 |
||
82 | |||
83 | Compare pyscope/dmsem.cfg.template with your active dmsem.cfg There are additional configuration that you may want to add. |
||
84 | |||
85 | h1. New Features |
||
86 | |||
87 | 2 | Anchi Cheng | Follow [[PyScope_Changes_36]] on the installation and setup of the specific feature you want to activate. |