Project

General

Profile

Configure leginoncfg Shared » History » Version 9

Amber Herold, 05/30/2012 11:50 AM

1 1 Anchi Cheng
h1. Configure leginon.cfg
2
3 9 Amber Herold
[[configure_leginoncfg_2_1|Instructions for Appion and Leginon versions prior to 2.2]]
4
5 2 Anchi Cheng
h2. The order in which Leginon/Appion looks for leginon.cfg
6
7
# individual user home directory
8
# $PYTHONSITEPKG/leginon/config
9 8 Amber Herold
 
10 6 Amber Herold
Note: You can discover the $PYTHONSITEPKG path by starting python:
11
<pre>
12
python
13
import sys
14
sys.path
15
</pre>
16
The first path to site-packages should hold the config file.
17
18 2 Anchi Cheng
h2. configuration file template
19
20 1 Anchi Cheng
A skeleton (default) configuration file is available:
21
<pre>
22
$PYTHONSITEPKG/leginon/config/default.cfg
23
</pre>
24
where $PYTHONSITEPKG is your python site-packages directory
25
26 2 Anchi Cheng
h2. Create a global leginon.cfg
27 1 Anchi Cheng
28
Copy default.cfg to leginon.cfg.
29
<pre>
30
sudo cp -v $PYTHONSITEPKG/leginon/config/default.cfg $PYTHONSITEPKG/leginon/config/leginon.cfg
31
</pre>
32
33 5 Anchi Cheng
Edit the newly created file and add a directory for images. Make sure you have permission to save files at this location. See [[File Server Setup Considerations|File Server Setup Considerations]] for more details
34 4 Anchi Cheng
35 3 Anchi Cheng
You may put in a fake path on the microscope PC installation and ignore the error message at the start of Leginon if you follow our general rule of not saving any image directly from  the microscope pc,
36 1 Anchi Cheng
<pre>
37
[Images]
38
path: your_storage_disk_path/leginon
39
</pre>