Project

General

Profile

Configure leginoncfg Shared » History » Version 8

Amber Herold, 04/16/2012 11:42 AM

1 1 Anchi Cheng
h1. Configure leginon.cfg
2
3 2 Anchi Cheng
h2. The order in which Leginon/Appion looks for leginon.cfg
4
5
# individual user home directory
6
# $PYTHONSITEPKG/leginon/config
7 8 Amber Herold
 
8 6 Amber Herold
Note: You can discover the $PYTHONSITEPKG path by starting python:
9
<pre>
10
python
11
import sys
12
sys.path
13
</pre>
14
The first path to site-packages should hold the config file.
15
16 2 Anchi Cheng
h2. configuration file template
17
18 1 Anchi Cheng
A skeleton (default) configuration file is available:
19
<pre>
20
$PYTHONSITEPKG/leginon/config/default.cfg
21
</pre>
22
where $PYTHONSITEPKG is your python site-packages directory
23
24 2 Anchi Cheng
h2. Create a global leginon.cfg
25 1 Anchi Cheng
26
Copy default.cfg to leginon.cfg.
27
<pre>
28
sudo cp -v $PYTHONSITEPKG/leginon/config/default.cfg $PYTHONSITEPKG/leginon/config/leginon.cfg
29
</pre>
30
31 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
32 4 Anchi Cheng
33 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,
34 1 Anchi Cheng
<pre>
35
[Images]
36
path: your_storage_disk_path/leginon
37
</pre>