A suite for displaying and managing histograms stored at Madison's Data Warehouse
There are three independent applications that read/write to a common MongoDB database server: a database-interface REST server, a web application, and a client script for production.
A REST server that interfaces a local MongoDB server
python3 -m virtualenv -p python3 mad_dash_db_server
. mad_dash_db_server/bin/activate
pip install -r db_server/requirements.txt
sudo killall mongod
./db_server/resources/mongo_test_server.sh
./db_server/resources/token_test_server.sh
python -m db_server
A script to add histograms and I3 file lists to the MongoDB DMBS
- Get I3 histogram pickle file(s). The filename will be used to identify the Mongo collection
- Have an http connection (not required for debugging)
python3 production_client/ingest_pickled_collections.py FILEPATH
python3 production_client/ingest_pickled_collections.py FILEPATH1 FILEPATH2 ...
python3 production_client/ingest_pickled_collections.py -r DIRPATH1 ...
python3 production_client/ingest_pickled_collections.py -h
A dashboard for viewing and comparing histograms
python3 -m virtualenv -p python3 mad_dash_web_app
. mad_dash_web_app/bin/activate
pip install -r web_app/requirements.txt
python -m web_app
Go to http://localhost:8050/
- Set up and start servers (see above)
pytest