Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Michael William Coughlin
GraceDB Server
Commits
93f06778
Commit
93f06778
authored
9 years ago
by
Branson Craig Stephens
Browse files
Options
Downloads
Patches
Plain Diff
Changed gstlalcbc_report to cbcreport.
parent
4c05b76a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
gracedb/reports.py
+9
-9
9 additions, 9 deletions
gracedb/reports.py
templates/gracedb/cbc_report.html
+2
-2
2 additions, 2 deletions
templates/gracedb/cbc_report.html
templates/gracedb/histogram.html
+1
-1
1 addition, 1 deletion
templates/gracedb/histogram.html
urls.py
+1
-1
1 addition, 1 deletion
urls.py
with
13 additions
and
13 deletions
gracedb/reports.py
+
9
−
9
View file @
93f06778
...
...
@@ -122,7 +122,7 @@ def rate_data():
# XXX This should be configurable / moddable or something
MAX_QUERY_RESULTS
=
1000
# The following two util routines are for
gstlal
cbc_report. This is messy.
# The following two util routines are for cbc_report. This is messy.
def
cluster
(
events
):
# FIXME N^2 clustering, but event list should always be small anyway...
def
quieter
(
e1
,
events
=
events
,
win
=
5
):
...
...
@@ -143,7 +143,7 @@ def to_png_image(out = sys.stdout):
return
base64
.
b64encode
(
f
.
getvalue
())
@internal_user_required
def
gstlal
cbc_report
(
request
,
format
=
""
):
def
cbc_report
(
request
,
format
=
""
):
if
not
request
.
user
or
not
request
.
user
.
is_authenticated
():
return
HttpResponseForbidden
(
"
Forbidden
"
)
...
...
@@ -179,7 +179,7 @@ def gstlalcbc_report(request, format=""):
errormsg
=
'
Your query returned items that are not CoincInspiral Events.
'
errormsg
+=
'
Please try again.
'
form
=
SimpleSearchForm
()
return
render_to_response
(
'
gracedb/
gstlal
cbc_report.html
'
,
return
render_to_response
(
'
gracedb/cbc_report.html
'
,
{
'
form
'
:
form
,
'
message
'
:
errormsg
},
context_instance
=
RequestContext
(
request
))
...
...
@@ -197,7 +197,7 @@ def gstlalcbc_report(request, format=""):
# Bounce back to the user with an error message
errormsg
=
'
Your query does not have a gpstime range. Please try again.
'
form
=
SimpleSearchForm
()
return
render_to_response
(
'
gracedb/
gstlal
cbc_report.html
'
,
return
render_to_response
(
'
gracedb/cbc_report.html
'
,
{
'
form
'
:
form
,
'
message
'
:
errormsg
},
context_instance
=
RequestContext
(
request
))
lt
=
int
(
gpsrange
[
1
])
-
int
(
gpsrange
[
0
])
...
...
@@ -206,14 +206,14 @@ def gstlalcbc_report(request, format=""):
# XXX Hardcoded limit
if
objects
.
count
()
>
2000
:
errormsg
=
'
Your query returned too many events. Please try again.
'
return
render_to_response
(
'
gracedb/
gstlal
cbc_report.html
'
,
return
render_to_response
(
'
gracedb/cbc_report.html
'
,
{
'
form
'
:
form
,
'
message
'
:
errormsg
},
context_instance
=
RequestContext
(
request
))
# Zero events will break the min/max over masses below.
if
objects
.
count
()
<
1
:
errormsg
=
'
Your query returned no events. Please try again.
'
return
render_to_response
(
'
gracedb/
gstlal
cbc_report.html
'
,
return
render_to_response
(
'
gracedb/cbc_report.html
'
,
{
'
form
'
:
form
,
'
message
'
:
errormsg
},
context_instance
=
RequestContext
(
request
))
...
...
@@ -299,7 +299,7 @@ def gstlalcbc_report(request, format=""):
context
=
{
'
title
'
:
title
,
'
form
'
:
form
,
'
formAction
'
:
reverse
(
gstlal
cbc_report
),
'
formAction
'
:
reverse
(
cbc_report
),
'
count
'
:
objects
.
count
(),
'
rawquery
'
:
rawquery
,
'
FAR_color_map
'
:
FAR_color_map
,
...
...
@@ -308,10 +308,10 @@ def gstlalcbc_report(request, format=""):
'
ifar_plot
'
:
ifar_plot
,
'
clustered_events
'
:
clustered_events
,
}
return
render_to_response
(
'
gracedb/
gstlal
cbc_report.html
'
,
context
,
return
render_to_response
(
'
gracedb/cbc_report.html
'
,
context
,
context_instance
=
RequestContext
(
request
))
return
render_to_response
(
'
gracedb/
gstlal
cbc_report.html
'
,
return
render_to_response
(
'
gracedb/cbc_report.html
'
,
{
'
form
'
:
form
,
},
context_instance
=
RequestContext
(
request
))
...
...
This diff is collapsed.
Click to expand it.
templates/gracedb/
gstlal
cbc_report.html
→
templates/gracedb/cbc_report.html
+
2
−
2
View file @
93f06778
...
...
@@ -6,9 +6,9 @@
onload="document.search_form.query.focus();"
{% endblock %}
{% block title %}
gstlalcbc
Report{% endblock %}
{% block title %}
CBC
Report{% endblock %}
{% block heading %}{% endblock %} #}
{% block pageid %}
gstlalcbc
Report{% endblock %}
{% block pageid %}
CBC
Report{% endblock %}
{% block jscript %}
<script
type=
"text/javascript"
>
...
...
This diff is collapsed.
Click to expand it.
templates/gracedb/histogram.html
+
1
−
1
View file @
93f06778
...
...
@@ -82,7 +82,7 @@ function toggle(id) {
{% block content %}
<br/>
<a
href=
"{% url "
gstlal
cbc_report
"
%}"
><h3>
Dynamic CBC Report
</h3></a>
<a
href=
"{% url "
cbc_report
"
%}"
><h3>
Dynamic CBC Report
</h3></a>
<br/>
<br/>
...
...
This diff is collapsed.
Click to expand it.
urls.py
+
1
−
1
View file @
93f06778
...
...
@@ -37,7 +37,7 @@ urlpatterns = patterns('',
url
(
r
'
^performance/$
'
,
'
gracedb.views.performance
'
,
name
=
"
performance
"
),
url
(
r
'
^reports/$
'
,
'
gracedb.reports.histo
'
,
name
=
"
reports
"
),
url
(
r
'
^reports/
gstlal
cbc_report/(?P<format>(json|flex))?$
'
,
'
gracedb.reports.
gstlal
cbc_report
'
,
name
=
"
gstlal
cbc_report
"
),
url
(
r
'
^reports/cbc_report/(?P<format>(json|flex))?$
'
,
'
gracedb.reports.cbc_report
'
,
name
=
"
cbc_report
"
),
#(r'^reports/(?P<path>.+)$', 'django.views.static.serve',
# {'document_root': settings.LATENCY_REPORT_DEST_DIR}),
...
...
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