Project

General

Profile

Configure leginoncfg Shared » History » Version 6

Amber Herold, 04/16/2012 11:39 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 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
15
The first path to site-packages should hold the config file.
16
17 2 Anchi Cheng
h2. configuration file template
18
19 1 Anchi Cheng
A skeleton (default) configuration file is available:
20
<pre>
21
$PYTHONSITEPKG/leginon/config/default.cfg
22
</pre>
23
where $PYTHONSITEPKG is your python site-packages directory
24
25 2 Anchi Cheng
h2. Create a global leginon.cfg
26 1 Anchi Cheng
27
Copy default.cfg to leginon.cfg.
28
<pre>
29
sudo cp -v $PYTHONSITEPKG/leginon/config/default.cfg $PYTHONSITEPKG/leginon/config/leginon.cfg
30
</pre>
31
32 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
33 4 Anchi Cheng
34 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,
35 1 Anchi Cheng
<pre>
36
[Images]
37
path: your_storage_disk_path/leginon
38
</pre>