Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Philippe Nguyen
ligo-followup-advocate
Commits
9825b691
Commit
9825b691
authored
Feb 25, 2019
by
Philippe Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed lint error and deleted em_coinc.json
parent
a804c5df
Pipeline
#50392
passed with stages
in 7 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
28 deletions
+17
-28
ligo/followup_advocate/__init__.py
ligo/followup_advocate/__init__.py
+17
-17
ligo/followup_advocate/test/data/S1234/files/em_coinc.json
ligo/followup_advocate/test/data/S1234/files/em_coinc.json
+0
-11
No files found.
ligo/followup_advocate/__init__.py
View file @
9825b691
...
...
@@ -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
)
...
...
ligo/followup_advocate/test/data/S1234/files/em_coinc.json
deleted
100644 → 0
View file @
a804c5df
{
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment