Skip to content
Snippets Groups Projects
Commit 33b327c1 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add RASP plots and disable K40

parent e40f1a94
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,11 @@ COMPACT_PLOTS = [['dom_activity', 'dom_rates', 'pmt_rates', 'pmt_hrv'], ...@@ -24,6 +24,11 @@ COMPACT_PLOTS = [['dom_activity', 'dom_rates', 'pmt_rates', 'pmt_hrv'],
['trigger_rates', 'trigger_rates_lin'], ['trigger_rates', 'trigger_rates_lin'],
['ztplot', 'ztplot_roy', 'triggermap']] ['ztplot', 'ztplot_roy', 'triggermap']]
SN_PLOTS = [['sn_bg_histogram', 'sn_pk_history']] 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): if exists(CONFIG_PATH):
config = toml.load(CONFIG_PATH) config = toml.load(CONFIG_PATH)
...@@ -133,17 +138,17 @@ def rttc(): ...@@ -133,17 +138,17 @@ def rttc():
"RTTC = Cable_RTT - (TX_Slave + RX_Slave + TX_Master + RX_Master)") "RTTC = Cable_RTT - (TX_Slave + RX_Slave + TX_Master + RX_Master)")
@app.route('/k40.html') # @app.route('/k40.html')
@requires_auth # @requires_auth
def k40(): # def k40():
return render_template( # return render_template(
'plots.html', # 'plots.html',
plots=expand_wildcards(K40_PLOTS), # plots=expand_wildcards(K40_PLOTS),
info="The first plot shows the intra-DOM calibration. " # info="The first plot shows the intra-DOM calibration. "
"y-axis: delta_t [ns], x-axis: cosine of angles. " # "y-axis: delta_t [ns], x-axis: cosine of angles. "
"The second plot the angular distribution of K40 rates. " # "The second plot the angular distribution of K40 rates. "
"y-axis: rate [Hz], x-axis: cosine of angles. " # "y-axis: rate [Hz], x-axis: cosine of angles. "
"blue=before, red=after") # "blue=before, red=after")
@app.route('/trigger.html') @app.route('/trigger.html')
...@@ -174,3 +179,9 @@ def custom_static(filename): ...@@ -174,3 +179,9 @@ def custom_static(filename):
filepath = join(app.root_path, PLOTS_PATH) filepath = join(app.root_path, PLOTS_PATH)
print("Serving: {}/{}".format(filepath, filename)) print("Serving: {}/{}".format(filepath, filename))
return send_from_directory(join(app.root_path, PLOTS_PATH), 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))
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="active"><a href="rttc.html">RTTC</a></li> <li class="active"><a href="rttc.html">RTTC</a></li>
</ul> </ul>
<ul class="nav navbar-nav"> <!-- <ul class="nav navbar&#45;nav"> -->
<li class="active"><a href="k40.html">K40</a></li> <!-- <li class="active"><a href="k40.html">K40</a></li> -->
</ul> <!-- </ul> -->
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="active"><a href="reco.html">Reco</a></li> <li class="active"><a href="reco.html">Reco</a></li>
</ul> </ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment