Project

General

Profile

Configure leginoncfg 2 1 » History » Version 1

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

1 1 Amber Herold
h1. Configure leginon.cfg for Appion/Leginon v2.1 and lower
2
3
4
h2. The order in which Leginon/Appion looks for leginon.cfg
5
6
# individual user home directory
7
# $PYTHONSITEPKG/leginon/config
8
 
9
Note: You can discover the $PYTHONSITEPKG path by starting python:
10
<pre>
11
python
12
import sys
13
sys.path
14
</pre>
15
The first path to site-packages should hold the config file.
16
17
h2. configuration file template
18
19
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
h2. Create a global leginon.cfg
26
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
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
34
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
<pre>
36
[Images]
37
path: your_storage_disk_path/leginon
38
</pre>