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 Coughlin
GraceDB Server
Commits
5ec0c792
Commit
5ec0c792
authored
12 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Spastic mod to un-break Reports link.
parent
400f7879
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
settings/default.py
+27
-27
27 additions, 27 deletions
settings/default.py
with
27 additions
and
27 deletions
settings/default.py
+
27
−
27
View file @
5ec0c792
...
...
@@ -64,33 +64,33 @@ LATENCY_REPORT_WEB_PAGE_FILE_PATH = LATENCY_REPORT_DEST_DIR + "/latency.inc"
# Find another way to do this.
#
#
# CBC IFAR Reports
#
#
from
gracedb.
utils import posixToGpsTime
#
from datetime import datetime, timedelta
#
import time
#
#
now = datetime.now()
#
yesterday = now - timedelta(days=1)
#
lastweek = now - timedelta(days=7)
#
now = posixToGpsTime(time.mktime(now.timetuple()))
#
yesterday = posixToGpsTime(time.mktime(yesterday.timetuple()))
#
lastweek = posixToGpsTime(time.mktime(lastweek.timetuple()))
#
#
REPORT_IFAR_IMAGE_DIR = LATENCY_REPORT_DEST_DIR
#
REPORTS_IFAR = [
#
#(query, axis_label, title, fname),
#
("LowMass %d..%d" % (yesterday, now),
#
"GraceDB CBC LowMass ER1 events",
#
"ER1 FARs from gstlal_ll_inspiral - last day",
#
"ifar_day.png"
#
),
#
("LowMass %d..%d" % (lastweek, now),
#
"GraceDB CBC LowMass ER1 events",
#
"ER1 FARs from gstlal_ll_inspiral - last week",
#
"ifar_week.png"
#
),
#
]
# CBC IFAR Reports
from
utils
import
posixToGpsTime
from
datetime
import
datetime
,
timedelta
import
time
now
=
datetime
.
now
()
yesterday
=
now
-
timedelta
(
days
=
1
)
lastweek
=
now
-
timedelta
(
days
=
7
)
now
=
posixToGpsTime
(
time
.
mktime
(
now
.
timetuple
()))
yesterday
=
posixToGpsTime
(
time
.
mktime
(
yesterday
.
timetuple
()))
lastweek
=
posixToGpsTime
(
time
.
mktime
(
lastweek
.
timetuple
()))
REPORT_IFAR_IMAGE_DIR
=
LATENCY_REPORT_DEST_DIR
REPORTS_IFAR
=
[
#(query, axis_label, title, fname),
(
"
LowMass %d..%d
"
%
(
yesterday
,
now
),
"
GraceDB CBC LowMass ER1 events
"
,
"
ER1 FARs from gstlal_ll_inspiral - last day
"
,
"
ifar_day.png
"
),
(
"
LowMass %d..%d
"
%
(
lastweek
,
now
),
"
GraceDB CBC LowMass ER1 events
"
,
"
ER1 FARs from gstlal_ll_inspiral - last week
"
,
"
ifar_week.png
"
),
]
# RSS Feed Defaults
...
...
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