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
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Michael William Coughlin
GraceDB Server
Commits
8fd35daf
Commit
8fd35daf
authored
9 years ago
by
Branson Craig Stephens
Browse files
Options
Downloads
Patches
Plain Diff
Relaxing constraint that event must have FAR to build VOEvent.
parent
022a3df9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/buildVOEvent.py
+10
-8
10 additions, 8 deletions
gracedb/buildVOEvent.py
with
10 additions
and
8 deletions
gracedb/buildVOEvent.py
+
10
−
8
View file @
8fd35daf
...
...
@@ -38,8 +38,9 @@ VOEVENT_TYPE_DICT = dict(GraceDBVOEvent.VOEVENT_TYPE_CHOICES)
def
buildVOEvent
(
event
,
serial_number
,
voevent_type
,
request
=
None
,
skymap_filename
=
None
,
skymap_type
=
None
,
skymap_image_filename
=
None
):
if
not
event
.
far
:
raise
VOEventBuilderException
(
"
Cannot build a VOEvent because event has no FAR.
"
)
# XXX Branson commenting out. Reed's MDC events do not have FAR for some reason.
# if not event.far:
# raise VOEventBuilderException("Cannot build a VOEvent because event has no FAR.")
if
not
event
.
gpstime
:
raise
VOEventBuilderException
(
"
Cannot build a VOEvent because event has no gpstime.
"
)
...
...
@@ -144,12 +145,13 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
Description
=
[
"
List of instruments used in analysis to identify this event
"
]))
# False alarm rate
w
.
add_Param
(
Param
(
name
=
"
FAR
"
,
dataType
=
"
float
"
,
ucd
=
"
arith.rate;stat.falsealarm
"
,
unit
=
"
Hz
"
,
value
=
float
(
event
.
far
),
Description
=
[
"
False alarm rate for GW candidates with this strength or greater
"
]))
if
event
.
far
:
w
.
add_Param
(
Param
(
name
=
"
FAR
"
,
dataType
=
"
float
"
,
ucd
=
"
arith.rate;stat.falsealarm
"
,
unit
=
"
Hz
"
,
value
=
float
(
event
.
far
),
Description
=
[
"
False alarm rate for GW candidates with this strength or greater
"
]))
# Group
w
.
add_Param
(
Param
(
name
=
"
Group
"
,
...
...
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