Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IGWN Computing and Software
GraceDB
GraceDB Server
Commits
1fbb65d6
Commit
1fbb65d6
authored
6 years ago
by
Tanner Prestegard
Committed by
GraceDB
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove empty units specification from VOEvent file params
parent
73b5e6c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!10
Updates to VOEvent schema and contents
Pipeline
#41697
passed
6 years ago
Stage: branch
Stage: latest
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gracedb/events/buildVOEvent.py
+12
-20
12 additions, 20 deletions
gracedb/events/buildVOEvent.py
gracedb/superevents/buildVOEvent.py
+12
-20
12 additions, 20 deletions
gracedb/superevents/buildVOEvent.py
with
24 additions
and
40 deletions
gracedb/events/buildVOEvent.py
+
12
−
20
View file @
1fbb65d6
...
...
@@ -193,14 +193,12 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
w
.
add_Param
(
Param
(
name
=
"
AlertType
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.version
"
,
unit
=
""
,
value
=
alert_type
.
capitalize
(),
Description
=
[
"
VOEvent alert type
"
]))
w
.
add_Param
(
Param
(
name
=
"
Retraction
"
,
dataType
=
"
int
"
,
ucd
=
"
meta.number
"
,
unit
=
""
,
value
=
(
1
if
voevent_type
==
'
retraction
'
else
0
),
Description
=
[
"
Set to 1 if the event is retracted, otherwise 0
"
]))
...
...
@@ -209,14 +207,12 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
w
.
add_Param
(
Param
(
name
=
"
HardwareInj
"
,
dataType
=
"
int
"
,
ucd
=
"
meta.number
"
,
unit
=
""
,
value
=
int
(
hardware_inj
),
Description
=
[
'
Indicates that this event is a hardware injection if 1, no if 0
'
]))
w
.
add_Param
(
Param
(
name
=
"
OpenAlert
"
,
dataType
=
"
int
"
,
ucd
=
"
meta.number
"
,
unit
=
""
,
value
=
int
(
open_alert
),
Description
=
[
'
Indicates that this event is an open alert if 1, no if 0
'
]))
...
...
@@ -246,7 +242,6 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
w
.
add_Param
(
Param
(
name
=
"
Group
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.code
"
,
unit
=
""
,
value
=
event
.
group
.
name
,
Description
=
[
"
Data analysis working group
"
]))
...
...
@@ -254,7 +249,6 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
w
.
add_Param
(
Param
(
name
=
"
Pipeline
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.code
"
,
unit
=
""
,
value
=
event
.
pipeline
.
name
,
Description
=
[
"
Low-latency data analysis pipeline
"
]))
...
...
@@ -262,7 +256,6 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
if
event
.
search
:
w
.
add_Param
(
Param
(
name
=
"
Search
"
,
ucd
=
"
meta.code
"
,
unit
=
""
,
dataType
=
"
string
"
,
value
=
event
.
search
.
name
,
Description
=
[
"
Specific low-latency search
"
]))
...
...
@@ -303,12 +296,12 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
# Add parameters to the skymap group
g
.
add_Param
(
Param
(
name
=
"
skymap_fits
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.ref.url
"
,
unit
=
""
,
value
=
fits_skymap_url
,
ucd
=
"
meta.ref.url
"
,
value
=
fits_skymap_url
,
Description
=
[
"
Sky Map FITS
"
]))
if
img_name
:
g
.
add_Param
(
Param
(
name
=
"
skymap_png
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.ref.url
"
,
unit
=
""
,
value
=
png_skymap_url
,
ucd
=
"
meta.ref.url
"
,
value
=
png_skymap_url
,
Description
=
[
"
Sky Map image
"
]))
w
.
add_Group
(
g
)
...
...
@@ -331,40 +324,39 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
# EM-Bright mass classifier information for CBC event candidates
if
ProbHasNS
is
not
None
:
properties_group
.
add_Param
(
Param
(
name
=
"
HasNS
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
ProbHasNS
,
Description
=
[
"
Probability that at least
"
"
one object in the binary has a mass that is less than
"
"
3 solar masses
"
]))
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
value
=
ProbHasNS
,
Description
=
[
"
Probability that at least one object in the
"
"
binary has a mass that is less than 3 solar masses
"
]))
if
ProbHasRemnant
is
not
None
:
properties_group
.
add_Param
(
Param
(
name
=
"
HasRemnant
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
ProbHasRemnant
,
Description
=
[
"
Probability that a nonzero mass was ejected
"
"
outside the central remnant
object
"
]))
value
=
ProbHasRemnant
,
Description
=
[
"
Probability that a
"
"
nonzero mass was ejected outside the central remnant
"
"
object
"
]))
if
BNS
is
not
None
:
classification_group
.
add_Param
(
Param
(
name
=
"
BNS
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
BNS
,
Description
=
[
"
Probability that the
"
value
=
BNS
,
Description
=
[
"
Probability that the
"
"
source is a binary neutron star merger
"
]))
if
NSBH
is
not
None
:
classification_group
.
add_Param
(
Param
(
name
=
"
NSBH
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
NSBH
,
Description
=
[
"
Probability that the
"
value
=
NSBH
,
Description
=
[
"
Probability that the
"
"
source is a neutron star - black hole merger
"
]))
if
BBH
is
not
None
:
classification_group
.
add_Param
(
Param
(
name
=
"
BBH
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
BBH
,
Description
=
[
"
Probability that the
"
value
=
BBH
,
Description
=
[
"
Probability that the
"
"
source is a binary black hole merger
"
]))
if
Terrestrial
is
not
None
:
classification_group
.
add_Param
(
Param
(
name
=
"
Terrestrial
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
Terrestrial
,
Description
=
[
"
Probability
"
value
=
Terrestrial
,
Description
=
[
"
Probability
"
"
that the source is terrestrial (i.e., a background noise
"
"
fluctuation or a glitch)
"
]))
...
...
This diff is collapsed.
Click to expand it.
gracedb/superevents/buildVOEvent.py
+
12
−
20
View file @
1fbb65d6
...
...
@@ -187,14 +187,12 @@ def construct_voevent_file(superevent, voevent, request=None,
w
.
add_Param
(
Param
(
name
=
"
AlertType
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.version
"
,
unit
=
""
,
value
=
alert_type
.
capitalize
(),
Description
=
[
"
VOEvent alert type
"
]))
w
.
add_Param
(
Param
(
name
=
"
Retraction
"
,
dataType
=
"
int
"
,
ucd
=
"
meta.number
"
,
unit
=
""
,
value
=
(
1
if
voevent_type
==
'
retraction
'
else
0
),
Description
=
[
"
Set to 1 if the event is retracted, otherwise 0
"
]))
...
...
@@ -202,14 +200,12 @@ def construct_voevent_file(superevent, voevent, request=None,
w
.
add_Param
(
Param
(
name
=
"
HardwareInj
"
,
dataType
=
"
int
"
,
ucd
=
"
meta.number
"
,
unit
=
""
,
value
=
int
(
hardware_inj
),
Description
=
[
'
Indicates that this event is a hardware injection if 1, no if 0
'
]))
w
.
add_Param
(
Param
(
name
=
"
OpenAlert
"
,
dataType
=
"
int
"
,
ucd
=
"
meta.number
"
,
unit
=
""
,
value
=
int
(
open_alert
),
Description
=
[
'
Indicates that this event is an open alert if 1, no if 0
'
]))
...
...
@@ -241,7 +237,6 @@ def construct_voevent_file(superevent, voevent, request=None,
w
.
add_Param
(
Param
(
name
=
"
Group
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.code
"
,
unit
=
""
,
value
=
event
.
group
.
name
,
Description
=
[
"
Data analysis working group
"
]))
...
...
@@ -249,7 +244,6 @@ def construct_voevent_file(superevent, voevent, request=None,
w
.
add_Param
(
Param
(
name
=
"
Pipeline
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.code
"
,
unit
=
""
,
value
=
event
.
pipeline
.
name
,
Description
=
[
"
Low-latency data analysis pipeline
"
]))
...
...
@@ -257,7 +251,6 @@ def construct_voevent_file(superevent, voevent, request=None,
if
event
.
search
:
w
.
add_Param
(
Param
(
name
=
"
Search
"
,
ucd
=
"
meta.code
"
,
unit
=
""
,
dataType
=
"
string
"
,
value
=
event
.
search
.
name
,
Description
=
[
"
Specific low-latency search
"
]))
...
...
@@ -291,12 +284,12 @@ def construct_voevent_file(superevent, voevent, request=None,
# Add parameters to the skymap group
g
.
add_Param
(
Param
(
name
=
"
skymap_fits
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.ref.url
"
,
unit
=
""
,
value
=
fits_skymap_url
,
ucd
=
"
meta.ref.url
"
,
value
=
fits_skymap_url
,
Description
=
[
"
Sky Map FITS
"
]))
if
img_name
:
g
.
add_Param
(
Param
(
name
=
"
skymap_png
"
,
dataType
=
"
string
"
,
ucd
=
"
meta.ref.url
"
,
unit
=
""
,
value
=
png_skymap_url
,
ucd
=
"
meta.ref.url
"
,
value
=
png_skymap_url
,
Description
=
[
"
Sky Map image
"
]))
w
.
add_Group
(
g
)
...
...
@@ -319,40 +312,39 @@ def construct_voevent_file(superevent, voevent, request=None,
# EM-Bright mass classifier information for CBC event candidates
if
ProbHasNS
is
not
None
:
properties_group
.
add_Param
(
Param
(
name
=
"
HasNS
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
ProbHasNS
,
Description
=
[
"
Probability that at least
"
"
one object in the binary has a mass that is less than
"
"
3 solar masses
"
]))
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
value
=
ProbHasNS
,
Description
=
[
"
Probability that at least one object in the
"
"
binary has a mass that is less than 3 solar masses
"
]))
if
ProbHasRemnant
is
not
None
:
properties_group
.
add_Param
(
Param
(
name
=
"
HasRemnant
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
ProbHasRemnant
,
Description
=
[
"
Probability that a nonzero mass was ejected
"
"
outside the central remnant
object
"
]))
value
=
ProbHasRemnant
,
Description
=
[
"
Probability that a
"
"
nonzero mass was ejected outside the central remnant
"
"
object
"
]))
if
BNS
is
not
None
:
classification_group
.
add_Param
(
Param
(
name
=
"
BNS
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
BNS
,
Description
=
[
"
Probability that the
"
value
=
BNS
,
Description
=
[
"
Probability that the
"
"
source is a binary neutron star merger
"
]))
if
NSBH
is
not
None
:
classification_group
.
add_Param
(
Param
(
name
=
"
NSBH
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
NSBH
,
Description
=
[
"
Probability that the
"
value
=
NSBH
,
Description
=
[
"
Probability that the
"
"
source is a neutron star - black hole merger
"
]))
if
BBH
is
not
None
:
classification_group
.
add_Param
(
Param
(
name
=
"
BBH
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
BBH
,
Description
=
[
"
Probability that the
"
value
=
BBH
,
Description
=
[
"
Probability that the
"
"
source is a binary black hole merger
"
]))
if
Terrestrial
is
not
None
:
classification_group
.
add_Param
(
Param
(
name
=
"
Terrestrial
"
,
dataType
=
"
float
"
,
ucd
=
"
stat.probability
"
,
unit
=
""
,
value
=
Terrestrial
,
Description
=
[
"
Probability
"
value
=
Terrestrial
,
Description
=
[
"
Probability
"
"
that the source is terrestrial (i.e., a background noise
"
"
fluctuation or a glitch)
"
]))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment