Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gstlal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Duncan Macleod
gstlal
Commits
d6ed1397
Commit
d6ed1397
authored
7 years ago
by
Kipp Cannon
Browse files
Options
Downloads
Patches
Plain Diff
inspiral.py: aesthetics
parent
57bd351b
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
gstlal-inspiral/python/inspiral.py
+2
-3
2 additions, 3 deletions
gstlal-inspiral/python/inspiral.py
with
2 additions
and
3 deletions
gstlal-inspiral/python/inspiral.py
+
2
−
3
View file @
d6ed1397
...
...
@@ -657,9 +657,8 @@ class Data(object):
buf_timestamp
=
LIGOTimeGPS
(
0
,
buf
.
pts
)
buf_seg
=
segments
.
segment
(
buf_timestamp
,
max
((
buf_timestamp
+
LIGOTimeGPS
(
0
,
buf
.
duration
),)
+
tuple
(
event
.
end
+
0.000000001
for
event
in
events
)))
buf_is_gap
=
bool
(
buf
.
mini_object
.
flags
&
Gst
.
BufferFlags
.
GAP
)
if
buf_is_gap
:
# sanity check that gap buffers are empty
assert
not
events
# sanity check that gap buffers are empty
assert
not
(
buf_is_gap
and
events
)
# safety check end times. OK for end times to be
# past end of buffer, but we cannot allow triggr
...
...
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