Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3mon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
km3py
km3mon
Commits
6b15ec8a
Commit
6b15ec8a
authored
5 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Be flexible with ahrs plots
parent
d246bc3a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/routes.py
+13
-3
13 additions, 3 deletions
app/routes.py
with
13 additions
and
3 deletions
app/routes.py
+
13
−
3
View file @
6b15ec8a
from
os.path
import
join
,
exists
from
glob
import
glob
from
os.path
import
basename
,
join
,
exists
from
functools
import
wraps
import
toml
from
flask
import
render_template
,
send_from_directory
,
request
,
Response
...
...
@@ -13,7 +14,7 @@ app.config['FREEZER_DESTINATION'] = '../km3web'
PLOTS
=
[[
'
dom_activity
'
,
'
dom_rates
'
],
[
'
pmt_rates
'
,
'
pmt_hrv
'
],
[
'
trigger_rates
'
],
[
'
ztplot
'
,
'
triggermap
'
]]
AHRS_PLOTS
=
[[
'
yaw_calib
'
],
[
'
pitch_calib
'
],
[
'
roll_calib
'
]]
AHRS_PLOTS
=
[[
'
yaw_calib
_du*
'
],
[
'
pitch_calib
_du*
'
],
[
'
roll_calib
_du*
'
]]
TRIGGER_PLOTS
=
[[
'
trigger_rates
'
],
[
'
trigger_rates_lin
'
]]
K40_PLOTS
=
[[
'
intradom
'
],
[
'
angular_k40rate_distribution
'
]]
RTTC_PLOTS
=
[[
'
rttc
'
]]
...
...
@@ -82,7 +83,14 @@ def index():
@app.route
(
'
/ahrs.html
'
)
@requires_auth
def
ahrs
():
return
render_template
(
'
plots.html
'
,
plots
=
AHRS_PLOTS
)
plots
=
[]
for
row
in
AHRS_PLOTS
:
if
not
isinstance
(
row
,
list
)
and
'
*
'
in
row
:
plots
.
append
(
sorted
([
basename
(
p
)
for
p
in
glob
(
join
(
PLOTS_PATH
,
row
))]))
else
:
plots
.
append
(
row
)
return
render_template
(
'
plots.html
'
,
plots
=
plots
)
@app.route
(
'
/reco.html
'
)
...
...
@@ -90,11 +98,13 @@ def ahrs():
def
reco
():
return
render_template
(
'
plots.html
'
,
plots
=
RECO_PLOTS
)
@app.route
(
'
/sn.html
'
)
@requires_auth
def
supernova
():
return
render_template
(
'
plots.html
'
,
plots
=
SN_PLOTS
)
@app.route
(
'
/compact.html
'
)
@requires_auth
def
compact
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment