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
885df3e1
Commit
885df3e1
authored
6 years ago
by
ChiWai Chan
Browse files
Options
Downloads
Patches
Plain Diff
cbc_template_fir: whitespace
parent
cd35fdc2
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/cbc_template_fir.py
+3
-0
3 additions, 0 deletions
gstlal-inspiral/python/cbc_template_fir.py
with
3 additions
and
0 deletions
gstlal-inspiral/python/cbc_template_fir.py
+
3
−
0
View file @
885df3e1
...
...
@@ -156,6 +156,7 @@ def generate_template(template_bank_row, approximant, sample_rate, duration, f_l
hplus
=
fseries
return
hplus
def
condition_imr_template
(
approximant
,
data
,
epoch_time
,
sample_rate_max
,
max_ringtime
):
assert
-
len
(
data
)
/
sample_rate_max
<=
epoch_time
<
0.0
,
"
Epoch returned follows a different convention
"
# find the index for the peak sample using the epoch returned by
...
...
@@ -176,6 +177,7 @@ def condition_imr_template(approximant, data, epoch_time, sample_rate_max, max_r
# done
return
data
,
target_index
def
condition_ear_warn_template
(
approximant
,
data
,
epoch_time
,
sample_rate_max
,
max_shift_time
):
assert
-
len
(
data
)
/
sample_rate_max
<=
epoch_time
<
0.0
,
"
Epoch returned follows a different convention
"
# find the index for the peak sample using the epoch returned by
...
...
@@ -188,6 +190,7 @@ def condition_ear_warn_template(approximant, data, epoch_time, sample_rate_max,
data
=
numpy
.
roll
(
data
,
target_index
-
epoch_index
)
return
data
,
target_index
def
compute_autocorrelation_mask
(
autocorrelation
):
'''
Given an autocorrelation time series, estimate the optimal
...
...
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