Project

General

Profile

Import Export Application Settings as json file » History » Version 1

Anchi Cheng, 12/08/2017 04:55 PM

1 1 Anchi Cheng
h1. Import Export Application Settings as json file
2
3
We have a pair python scripts used for exporting and importing application settings in your_myami/dbschema/tools.
4
You need to run this on your leginon linux station where leginon is installed so it can find the python library.
5
6
h2. Export to json file
7
8
Once you have a session that successfully use the settings that you would like to distribute
9
<pre>
10
cd /your_myami/dbschema
11
python ./export_leginon_settings.py <sessionname> <optional partial application name> <optional node name prefix>
12
</pre>
13
14
The options means that you could export the settings specific to the application, or node.
15
16
h2. Import into database
17
18
The settings needed for the application can be imported into Leginon
19
<pre>
20
cd /your_myami/dbschema
21
python ./import_leginon_settings.py J-MSI-T2
22
</pre>
23
It will prompt you for location of the settings json file if it can not find it automatically.  The location of the file is /your_myami/leginon/applications/J-MSI-T2.json