Configuration manager tool for Keck 1 Target of Opportunity planning
Written by Oliver Grayson and based on the KCWI Configuration Manager by Luca Rizzi
This project uses Angular 6 and Python 3.6
Clone the repo:
git clone https://github.com/KeckObservatory/TelescopeConfigManager/
Install using the install-script. Optionally, set a build location (the default is /inst/PILogin/ObservingTools/ConfigManager/
). Note: this does not set where the build appears (it's always in AngularConfManager/frontend/AngularConfManager/dist/
), but when deployed the build must be served from the base-href folder.
./install.sh
./install.sh /another/path/to/build/for
This will install all of the dependencies and compile the project.
cd AngularConfManager/frontend/AngularConfManager/
To compile for the production server,
ng build --base-href=/inst/PILogin/ObservingTools/ConfigManager/ --prod
If the path needs to be changed, compile using a different --base-href
flag.
cd AngularConfManager/backend
Nothing special needed here. Run using Python 3.6 or as an executable.
python3.6 ConfigManager.sin
./ConfigManager.sin
The server will listen on port 5002.
- Settings for the Python back-end, such as the port, the output directory, and the database name can be found in
AngularConfManager/backend/lib/database_config.py
. - URLs for the links to OOPGUI and ToORT, as well as the server address can be modified in
AngularConfManager/frontend/AngularConfManager/src/app/json/config.json
- Instrument definitions must be changed in both
AngularConfManager/backend/lib/
as their own Python files and inAngularConfManager/frontend/AngularConfManager/src/app/json/instrumentConfData.json
- add support for MOSFIRE's multi-keyword selector
- MOSFIRE's
sampmode_text
selector needs to set multiple values, as described insampmode_relation
in InstrumentConfig.json
- MOSFIRE's
- route the "save file" button to save .state files in a location more accessible to the instrument (currently they are saved in
AngularConfManager/AngularConfManager/backend/export/
.