Project

General

Profile

How to Update from v35 (Instrument Windows Computer) » History » Version 2

Anchi Cheng, 09/21/2022 12:04 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
* 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
40
41 1 Anchi Cheng
h3. Move the cloned folder according to your environment variable PYTHONPATH if you use that during the original installation.
42
43
*OR*
44
45
h3. Install to default python site-packages
46
47
* Start a command line Window from Start Menu
48
49
* Install the package in each folder (must starts with pyami)
50
<pre>cd path_to\myami-VERSION\myami\pyami
51
c:\\python27\python.exe setup.py install</pre>
52
Then continue with the other packages, replacing pyami with the package name. See the packages listed above for the complete list.
53
54
h2. Configure
55
56
[[locate global config directory on Windows]]
57
58
59
h1. FEI scopes
60
61
h2. fei.cfg
62
63
64
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.
65
66
h3. If you set for your Talos column
67
68
<pre>
69
FORCE_NORMALIZE_ALL_LENS_AFTER_MAG_SETTING = True
70
</pre>
71
72
please change it to use
73
74
<pre>
75
FORCE_NORMALIZE_ALL_AFTER_SETTING = True
76
</pre>
77
78
This is more generalized and produces better results.  See Issue #7076 for more details.
79
80
h1. GatanK2Summit or K3
81
82
Compare pyscope/dmsem.cfg.template with your active dmsem.cfg There are additional configuration that you may want to add.
83
84
h1. New Features
85
86 2 Anchi Cheng
Follow [[PyScope_Changes_36]] on the installation and setup of the specific feature you want to activate.