Skip to content
Snippets Groups Projects
Commit ced9ce4d authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-818: updated to production settings

parent 6fee261e
No related branches found
No related tags found
2 merge requests!62Lofar release 4 0 into master,!61SW-818: Resolve SW-818
......@@ -8,18 +8,16 @@ from lofar.mac.tbb.tbb_util import expand_list
TRIGGER_SERVICENAME = "triggerservice"
# VO-Events
# todo: configure broker host/port and filter_for Package_Type integer as provided for ALERT
ALERT_BROKER_HOST = '127.0.0.1' # arts041.apertif
ALERT_BROKER_HOST = '10.87.15.250' # phobos.nfra.nl.
ALERT_BROKER_PORT = 8099
ALERT_PACKET_TYPE_FILTER = None # list of int or None for all
DEFAULT_TBB_CEP_NODES = None # list of nodes to dump to, e.g. ["cpu%s" % str(num).zfill(2) for num in expand_list("01-50")], or None for all available
DEFAULT_TBB_SUBBANDS = expand_list("10-496") # The subbands to dump. Note: When starting the recording (tbbservice_start_recording), the subband range HAS to cover 487 subbands (typically 10-496)
DEFAULT_TBB_STATIONS = ['cs004'] # ['rs409'] # ['cs001','cs002','cs003','cs004','cs005','cs006','cs007','cs011','cs013','cs017','cs021','cs024','cs026','cs028','cs030','cs031','cs032','cs101','cs103','cs201','cs301','cs302','cs401','cs501','rs106','rs205','rs208','rs210','rs305','rs306','rs307','rs310','rs406','rs407','rs409','rs503','rs508','rs509'] # List of stations to include in tbb dump (filtered for those who are actually observing at event ToA)
DEFAULT_TBB_STATIONS = ['cs001','cs002','cs003','cs004','cs005','cs006','cs007','cs011','cs013','cs017','cs021','cs024','cs026','cs028','cs030','cs031','cs032','cs101','cs103','cs201','cs301','cs302','cs401','cs501','rs106','rs205','rs208','rs210','rs305','rs306','rs307','rs310','rs406','rs407','rs409','rs503','rs508','rs509'] # List of stations to include in tbb dump (filtered for those who are actually observing at event ToA)
DEFAULT_TBB_PROJECT = "COM_ALERT"
DEFAULT_TBB_ALERT_MODE = "subband"
DEFAULT_TBB_BOARDS = expand_list("0-5")
DEFAULT_TBB_DUMP_DURATION = 0.1 # todo! -> should be 5.0 in production
DEFAULT_TBB_DUMP_DURATION = 5.0 # should be 5.0 in production
STOPTIME_DELAY = 0.1 # stop this much after the actual stoptime to make sure the data is not stopped too early. This should be zero, especially when we want to dump the full 5 seconds, but for shorter dump durations, we can give some wiggle room.
......@@ -290,10 +290,10 @@ class ALERTHandler(VOEventListenerInterface):
# do a fast direct freeze call here, so the boards still contain data for this event.
# if we freeze via rpc/service calls, that takes time, so we might loose precious data from the buffers.
freeze_tbb(lcu_str, dm, stoptime_sec + STOPTIME_DELAY, stoptime_nsec)
freeze_tbb(lcu_str, dm, stoptime_sec, stoptime_nsec)
# initiate the dumping via an rpc call to the tbbservice which takes care of all bookkeeping.
with TBBRPC() as rpc:
with TBBRPC.create() as rpc:
rpc.do_tbb_subband_dump(starttime, duration, dm, DEFAULT_TBB_PROJECT, triggerid, available_stations, DEFAULT_TBB_SUBBANDS, DEFAULT_TBB_BOARDS, DEFAULT_TBB_CEP_NODES, voevent_xml, stoptime=stoptime)
else:
raise Exception('ALERT event %s rejected by science pre-flight checks!' % triggerid)
......
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