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
ded6025f
Commit
ded6025f
authored
5 years ago
by
CHAD RICHARD HANNA
Browse files
Options
Downloads
Patches
Plain Diff
O3_chunks: use double time to define boundaries
parent
38fc6510
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
+8
-1
8 additions, 1 deletion
gstlal-inspiral/share/O3/O3_chunks
with
8 additions
and
1 deletion
gstlal-inspiral/share/O3/O3_chunks
+
8
−
1
View file @
ded6025f
...
...
@@ -81,6 +81,9 @@ for ifo1 in ifos:
except
KeyError
:
doublesegs
[
ifo1
]
=
seglistdicts
.
intersection
((
ifo1
,
ifo2
))
# This is the set of segments when at least two ifos were on
doublesegsunion
=
doublesegs
.
union
(
doublesegs
.
keys
())
# This is the set of segments when at least one ifo was on
segs
=
seglistdicts
.
union
(
seglistdicts
.
keys
())
...
...
@@ -93,7 +96,11 @@ def enoughtime(seglist, start, end):
# that we only define boundaries when *no* ifos are on
# 2000000000 is a placeholder to define a segment end.
chunks
=
segments
.
segmentlist
([
segments
.
segment
(
segs
[
0
][
0
],
2000000000
)])
for
seg
in
segs
:
# This places boundaries when only one ifo or less was on
for
seg
in
doublesegsunion
:
# this line would only take boundaries when no ifo was on
#for seg in segs:
start
=
seg
[
0
]
end
=
seg
[
1
]
if
all
([
enoughtime
(
s
,
chunks
[
-
1
][
0
],
end
)
for
s
in
doublesegs
.
values
()]):
...
...
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