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
68c03a03
Commit
68c03a03
authored
5 years ago
by
CHAD RICHARD HANNA
Browse files
Options
Downloads
Patches
Plain Diff
O3_chunks: fix live time calc
parent
2bf756f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-inspiral/share/O3/O3_chunks
+2
-2
2 additions, 2 deletions
gstlal-inspiral/share/O3/O3_chunks
with
2 additions
and
2 deletions
gstlal-inspiral/share/O3/O3_chunks
+
2
−
2
View file @
68c03a03
#!/usr/bin/env python
#
# Copyright (C) 2018 Ryan Magee
2019 Ryan Magee, Duncan Meacher and Chad Hanna
# Copyright (C) 2018 Ryan Magee
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
...
...
@@ -105,5 +105,5 @@ print "%6s%12s%12s%12s" % ("chunk", "start", "end", "livetime")
# Skip the last because it won't be complete yet, this is in addition to the
# warning above. The warning above still applies
for
n
,
(
chunk
)
in
enumerate
(
chunks
[:
-
1
]):
print
"
%6s%12s%12s%12s
"
%
(
n
+
1
,
chunk
[
0
],
chunk
[
1
],
abs
(
chunk
))
print
"
%6s%12s%12s%12s
"
%
(
n
+
1
,
chunk
[
0
],
chunk
[
1
],
abs
(
segments
.
segmentlist
([
chunk
])
&
segs
))
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