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