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
ae8d9c34
Commit
ae8d9c34
authored
12 years ago
by
Drew Keppel
Browse files
Options
Downloads
Patches
Plain Diff
Adding chi to time-slice calculation
parent
ac9e4ba4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gstlal-ugly/python/svd_bank.py
+1
-1
1 addition, 1 deletion
gstlal-ugly/python/svd_bank.py
gstlal-ugly/python/templates.py
+4
-4
4 additions, 4 deletions
gstlal-ugly/python/templates.py
with
5 additions
and
5 deletions
gstlal-ugly/python/svd_bank.py
+
1
−
1
View file @
ae8d9c34
...
...
@@ -182,7 +182,7 @@ def build_bank(template_bank_filename, psd, flow, ortho_gate_fap, snr_threshold,
# Choose how to break up templates in time
time_freq_bounds
=
templates
.
time_slices
(
zip
(
bank_sngl_table
.
get_column
(
'
mass1
'
),
bank_sngl_table
.
get_column
(
'
mass2
'
)),
zip
(
bank_sngl_table
.
get_column
(
'
mass1
'
),
bank_sngl_table
.
get_column
(
'
mass2
'
)
,
bank_sngl_table
.
get_column
(
'
chi
'
)
),
fhigh
=
check_ffinal_and_find_max_ffinal
(
bank_xmldoc
),
flow
=
flow
,
padding
=
padding
,
...
...
This diff is collapsed.
Click to expand it.
gstlal-ugly/python/templates.py
+
4
−
4
View file @
ae8d9c34
...
...
@@ -164,7 +164,7 @@ def normalized_autocorrelation(fseries, revplan):
def
time_slices
(
m1m2
pair
s
,
m1m2
chi
s
,
flow
=
40
,
fhigh
=
900
,
padding
=
1.1
,
...
...
@@ -216,7 +216,7 @@ def time_slices(
# has its time dimension at least as large as its template dimension.
# The max size is chosen based on experience, which shows that
# SVDs of matrices bigger than m x 8192 are very slow.
segment_samples_min
=
max
(
ceil_pow_2
(
2
*
len
(
m1m2
pair
s
)
),
samples_min
)
segment_samples_min
=
max
(
ceil_pow_2
(
2
*
len
(
m1m2
chi
s
)
),
samples_min
)
# For each allowed sampling rate with associated Nyquist frequency fN,
# determine the greatest amount of time any template in the bank spends
...
...
@@ -235,10 +235,10 @@ def time_slices(
segment_samples_max
=
samples_max
if
segment_samples_min
>
segment_samples_max
:
raise
ValueError
(
"
The input template bank must have fewer than %d templates, but had %d.
"
%
(
segment_samples_max
,
2
*
len
(
m1m2
pair
s
)))
raise
ValueError
(
"
The input template bank must have fewer than %d templates, but had %d.
"
%
(
segment_samples_max
,
2
*
len
(
m1m2
chi
s
)))
this_flow
=
max
(
float
(
rate
)
/
(
4
*
padding
),
flow
)
longest_chirp
=
max
(
spawaveform
.
chirptime
(
m1
,
m2
,
7
,
this_flow
,
fhigh
)
for
m1
,
m2
in
m1m2
pair
s
)
longest_chirp
=
max
(
spawaveform
.
chirptime
(
m1
,
m2
,
7
,
this_flow
,
fhigh
,
chi
)
for
m1
,
m2
,
chi
in
m1m2
chi
s
)
# Do any of the templates go beyond the accumulated time?
# If so, we need to add some blocks at this sampling rate.
...
...
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