Actions
Import Export Application Settings as json file » History » Revision 1
Revision 1/6
| Next »
Anchi Cheng, 12/08/2017 04:55 PM
Import Export Application Settings as json file¶
We have a pair python scripts used for exporting and importing application settings in your_myami/dbschema/tools.
You need to run this on your leginon linux station where leginon is installed so it can find the python library.
Export to json file¶
Once you have a session that successfully use the settings that you would like to distribute
cd /your_myami/dbschema python ./export_leginon_settings.py <sessionname> <optional partial application name> <optional node name prefix>
The options means that you could export the settings specific to the application, or node.
Import into database¶
The settings needed for the application can be imported into Leginon
cd /your_myami/dbschema python ./import_leginon_settings.py J-MSI-T2
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
Updated by Anchi Cheng almost 7 years ago · 1 revisions