Import Export Application Settings as json file » History » Revision 2
Revision 1 (Anchi Cheng, 12/08/2017 04:55 PM) → Revision 2/6 (Anchi Cheng, 12/08/2017 04:56 PM)
h1. 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. h2. Export to json file Once you have a session that successfully use the settings that you would like to distribute <pre> cd /your_myami/dbschema python ./export_leginon_settings.py <sessionname> <optional partial application name> <optional node name prefix> </pre> The options means that you could export the settings specific to the application, or node. h2. Import into database The settings needed for the application can be imported into Leginon <pre> cd /your_myami/dbschema python ./import_leginon_settings.py <your_application name> J-MSI-T2 </pre> It will prompt you for location of the settings json file if it can not find it automatically. The default location of the file is /your_myami/leginon/applications/your_application.json /your_myami/leginon/applications/J-MSI-T2.json