Skip to content
Snippets Groups Projects
Commit 423b27ad authored by Brian Moe's avatar Brian Moe
Browse files

Put (some) VOEvent parameters into settings. To differentiate dev submissions from "real" ones.

parent 64a613f4
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ from gracedb.VOEventLib.Vutil import *
import sys, os
from gracedb.utils import gpsToUtc
from django.conf import settings
def buildVOEvent(gevent):
......@@ -20,9 +21,9 @@ def buildVOEvent(gevent):
############ VOEvent header ############################
v = VOEvent.VOEvent(version="2.0")
v.set_ivorn("ivo://ligo.org/gracedb#%s-dev" % objid)
v.set_role("test")
v.set_Description("LIGO / Virgo trigger")
v.set_ivorn(settings.SKYALERT_IVORN_PATTERN % objid)
v.set_role(settings.SKYALERT_ROLE)
v.set_Description(settings.SKYALERT_DESCRIPTION)
############ Who ############################
w = Who()
......
......@@ -13,8 +13,6 @@ ADMINS = (
MANAGERS = ADMINS
SKYALERT_SUBMITTERS = ['Patrick Brady', 'Brian Moe']
ALERT_EMAIL_FROM = "GraCEDb <gracedb@archie.phys.uwm.edu>"
ALERT_EMAIL_TO = [
"gracedb@listserv.ligo.org",
......@@ -50,6 +48,14 @@ DATABASE_HOST = '' # Set to empty string for localhost.
DATABASE_PORT = '' # Set to empty string for default.
# SkyAlert
SKYALERT_IVORN_PATTERN = "ivo://ligo.org/gracedb#%s"
SKYALERT_ROLE = "test"
SKYALERT_DESCRIPTION = "LIGO / Virgo trigger"
SKYALERT_SUBMITTERS = ['Patrick Brady', 'Brian Moe']
# Latency histograms. Where they go and max latency to bin.
LATENCY_REPORT_DEST_DIR = "/home/gracedb/data/latency"
LATENCY_MAXIMUM_CHARTED = 1800
......
......@@ -9,8 +9,6 @@ ADMINS = (
MANAGERS = ADMINS
SKYALERT_SUBMITTERS = ['Patrick Brady', 'Brian Moe']
ALERT_EMAIL_FROM = "Dev Alert <root@moe.phys.uwm.edu>"
ALERT_EMAIL_TO = [
"Brian Moe <bmoe@gravity.phys.uwm.edu>",
......@@ -37,6 +35,15 @@ DATABASE_PASSWORD = 'redrum4x'
DATABASE_HOST = '' # Set to empty string for localhost.
DATABASE_PORT = '' # Set to empty string for default.
# SkyAlert
SKYALERT_IVORN_PATTERN = "ivo://ligo.org/gracedb#%s-dev"
SKYALERT_ROLE = "test"
SKYALERT_DESCRIPTION = "LIGO / Virgo trigger"
SKYALERT_SUBMITTERS = ['Patrick Brady', 'Brian Moe']
# Latency histograms. Where they go and max latency to bin.
LATENCY_REPORT_DEST_DIR = "/home/bmoe/django/data/latency"
LATENCY_MAXIMUM_CHARTED = 1800
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment