Commit 9825b691 authored by Philippe Nguyen's avatar Philippe Nguyen

fixed lint error and deleted em_coinc.json

parent a804c5df
Pipeline #50392 passed with stages
in 7 minutes and 9 seconds
......@@ -259,23 +259,23 @@ def compose_emcoinc(gracedb_id, authors=(),
service=rest.DEFAULT_SERVICE_URL, client=None):
"""Compose EM_COINC GCN Circular draft"""
path_output_X = (
'/home/grb.exttrig/Online/O3/processor/runs/X/GRB{}/'
'auto_web/{}_online_openbox_summary.txt'
).format(gracedb_id, gracedb_id) # true one?
path_output_X = (
'/home/grb.exttrig/Online/O2/processor/runs/X/GRBE298784/'
'auto_web/E298784_online_openbox_summary.txt'
) # Michal example
path_output_CBC = 'need to be defined'
if os.path.exists(path_output_X):
output_X = open(path_output_X, 'r')
for line in output_X:
infos_X = line.strip('\n').split(' ')
if infos_X[2] == 'sgc150q9':
UL50 = infos_X[3]
# need to build a function to convert UL50 to exclusion distance ?
# path_output_X = (
# '/home/grb.exttrig/Online/O3/processor/runs/X/GRB{}/'
# 'auto_web/{}_online_openbox_summary.txt'
# ).format(gracedb_id, gracedb_id) # true one?
# path_output_X = (
# '/home/grb.exttrig/Online/O2/processor/runs/X/GRBE298784/'
# 'auto_web/E298784_online_openbox_summary.txt'
# ) # Michal example
# path_output_CBC = 'need to be defined'
# if os.path.exists(path_output_X):
# output_X = open(path_output_X, 'r')
# for line in output_X:
# infos_X = line.strip('\n').split(' ')
# if infos_X[2] == 'sgc150q9':
# UL50 = infos_X[3]
# # need to build a function to convert UL50 to exclusion distance ?
if client is None:
client = rest.GraceDb(service)
......
{
"pipelines": ["CBC pipeline (PyGRB)","Burst pipeline (X-pipeline)"],
"exclusion": false,
"GRB_id": "XXXXXX - XXXX128XX",
"CITE_GCN": "(Klebesadel, et al., GCN Circ. XXXXX)",
"NSNS_Mpc": 40,
"NSBH_Mpc": 32,
"Burst_Mpc": 12,
"CBC_FAR": 1e-2,
"Burst_FAR": 1e-1
}
\ No newline at end of file
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