This tool creates a JSON output that can be used as input for brilcalc.
It does so by accessing the Tracker workspace of the Run Registry via a custom Run Registry client. The website is deployed using OpenShift (CERN web services) and can be accessed via http://lumis.web.cern.ch/.
Currently only the Tracker workspace is supported.
Feel free to contribute by creating issues or pull requests.
Following steps need to be done to develop on this project:
- Python 3.5 or Python 3.6
- Access to the CERN GPN
git clone https://github.com/ptrstn/lumis.git
cd lumis
python -m venv venv
On Linux:
source venv/bin/active
On Windows:
venv\Scripts\active
pip install -r requirements.txt
You can generate a secret key with web tools like this.
Export DJANGO_SECRET_KEY environment variable
DJANGO_SECRET_KEY=&ij2_mx6*jw)zkpzdkejcyw(d!e-xo%*)ljq*_ozqjh^p^5-!v
Create a .env
file containing the environment variables
echo "DJANGO_SECRET_KEY=^4u&cx=kn24gjaw)(q2vw56tgnadyhok0!!pdjf38ndr5bajci" > .env
Make sure that you never commit the .env
file, so that your secret key is not revealed.
python manage.py collectstatic
Rerun this command whenever you make changes to static files.
python manage.py runserver
The website can then be accessed locally at http://127.0.0.1:8000/