diff --git a/app/routes.py b/app/routes.py index 005aa227f0a37ce0c06cd979b8f31243df5334f5..9849264c8d88945d0bb0ce7489ee1a0aca206e1c 100644 --- a/app/routes.py +++ b/app/routes.py @@ -24,6 +24,11 @@ COMPACT_PLOTS = [['dom_activity', 'dom_rates', 'pmt_rates', 'pmt_hrv'], ['trigger_rates', 'trigger_rates_lin'], ['ztplot', 'ztplot_roy', 'triggermap']] SN_PLOTS = [['sn_bg_histogram', 'sn_pk_history']] +RASP_PLOTS = [['dom_rates', 'ztplot', 'triggermap'], + [ + 'pmt_rates_du2', 'pmt_rates_du3', 'pmt_rates_du4', + 'pmt_rates_du5' + ], ['trigger_rates', 'trigger_rates_lin']] if exists(CONFIG_PATH): config = toml.load(CONFIG_PATH) @@ -133,17 +138,17 @@ def rttc(): "RTTC = Cable_RTT - (TX_Slave + RX_Slave + TX_Master + RX_Master)") -@app.route('/k40.html') -@requires_auth -def k40(): - return render_template( - 'plots.html', - plots=expand_wildcards(K40_PLOTS), - info="The first plot shows the intra-DOM calibration. " - "y-axis: delta_t [ns], x-axis: cosine of angles. " - "The second plot the angular distribution of K40 rates. " - "y-axis: rate [Hz], x-axis: cosine of angles. " - "blue=before, red=after") +# @app.route('/k40.html') +# @requires_auth +# def k40(): +# return render_template( +# 'plots.html', +# plots=expand_wildcards(K40_PLOTS), +# info="The first plot shows the intra-DOM calibration. " +# "y-axis: delta_t [ns], x-axis: cosine of angles. " +# "The second plot the angular distribution of K40 rates. " +# "y-axis: rate [Hz], x-axis: cosine of angles. " +# "blue=before, red=after") @app.route('/trigger.html') @@ -174,3 +179,9 @@ def custom_static(filename): filepath = join(app.root_path, PLOTS_PATH) print("Serving: {}/{}".format(filepath, filename)) return send_from_directory(join(app.root_path, PLOTS_PATH), filename) + + +@app.route('/rasp.html') +@requires_auth +def rasp(): + return render_template('plots.html', plots=expand_wildcards(RASP_PLOTS)) diff --git a/app/templates/base.html b/app/templates/base.html index fb5423d0f00af0e951c7f79e7b2012cce7b0e094..6877f9a43100bfe5255ba86b40c2e2cf60876a7c 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -44,9 +44,9 @@ <ul class="nav navbar-nav"> <li class="active"><a href="rttc.html">RTTC</a></li> </ul> - <ul class="nav navbar-nav"> - <li class="active"><a href="k40.html">K40</a></li> - </ul> + <!-- <ul class="nav navbar-nav"> --> + <!-- <li class="active"><a href="k40.html">K40</a></li> --> + <!-- </ul> --> <ul class="nav navbar-nav"> <li class="active"><a href="reco.html">Reco</a></li> </ul>