Commit 65a4c08e authored by Tanner Prestegard's avatar Tanner Prestegard Committed by gracedb-dev1
Browse files

setting things up for Virgo to be added to the system

parent b98fce43
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
ifos = ['V1']
labels = {
'OPS': 'black',
'OK': 'green',
'NO': 'red',
}
def add_labels(apps, schema_editor):
Label = apps.get_model('gracedb', 'Label')
for ifo in ifos:
for name, color in labels.iteritems():
label_name = ifo + name
Label.objects.create(name=label_name, defaultColor=color)
def remove_labels(apps, schema_editor):
Label = apps.get_model('gracedb', 'Label')
for ifo in ifos:
for name, color in labels.iteritems():
label_name = ifo + name
l = Label.objects.get(name=label_name)
l.delete()
class Migration(migrations.Migration):
dependencies = [
('gracedb', '0016_add_em_sent_label')
]
operations = [
migrations.RunPython(add_labels, remove_labels)
]
......@@ -348,11 +348,18 @@ SOUTH_TESTS_MIGRATE = False
# Passwords for LVEM scripted access expire after 365 days.
PASSWORD_EXPIRATION_TIME = timedelta(days=365)
# LIGO control room IPs
# IP addresses of IFO control rooms
# Used to display signoff pages
# for operators
CONTROL_ROOM_IPS = {
'H1': '198.129.208.178',
'L1': '208.69.128.41',
'V1': '90.147.136.225',
}
# 10 Apr 2017 (TP):
# Virgo IP received from Florent Robinet,
# Franco Carbognani, Sarah Antier. Corresponds
# to ctrl1.virgo.infn.it.
# Everything below here is logging. ###########################################
......
......@@ -87,10 +87,11 @@ INTERNAL_IPS = (
'129.89.57.83',
)
# Why are these different from production?
# Use these to test operator signoffs
# Change to your own IP.
CONTROL_ROOM_IPS = {
'H1': '108.45.69.217',
'L1': '129.2.92.124',
# 'L1': '129.89.57.83',
'V1': '90.147.136.225',
}
......@@ -20,6 +20,9 @@ var label_descriptions = {
L1OPS: "L1 operator signoff requested.",
L1OK: "L1 operator says event is okay.",
L1NO: "L1 operator says event is not okay.",
V1OPS: "V1 operator signoff requested.",
V1OK: "V1 operator says event is okay.",
V1NO: "V1 operator says event is not okay.",
EM_Throttled: "GraceID is ignored by automatic processing because the corresponding pipeline submitted too many events too quickly.",
EM_Selected: "GraceID automatically chosen as the most promising candidate out of a set of entries thought to correspond to the same physical event.",
EM_Superseded: "GraceID automatically passed over because another entry was thought to be more promising and to correspond to the same physical event.",
......
......@@ -63,7 +63,7 @@
<li>H1OK | L1OK &amp; ~INJ &amp; ~DQV</li>
</ul>
Labels in current use are:
INJ, DQV, EM_READY, PE_READY, H1NO, H1OK, H1OPS, L1NO, L1OK, L1OPS, ADVREQ, ADVOK, ADVNO, EM_COINC, EM_SENT
INJ, DQV, EM_READY, PE_READY, H1NO, H1OK, H1OPS, L1NO, L1OK, L1OPS, V1NO, V1OK, V1OPS, ADVREQ, ADVOK, ADVNO, EM_COINC, EM_SENT
<h4>By Submitter</h4>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment