Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
spiir-group
GstLAL
Commits
3e130f9f
Commit
3e130f9f
authored
4 years ago
by
Patrick Godwin
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_snax_extract: fix edge case in frequency bins where f_high < bin
parent
ee9b24f4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gstlal-burst/bin/gstlal_snax_extract
+3
-2
3 additions, 2 deletions
gstlal-burst/bin/gstlal_snax_extract
gstlal-burst/python/snax/waveforms.py
+0
-1
0 additions, 1 deletion
gstlal-burst/python/snax/waveforms.py
with
3 additions
and
3 deletions
gstlal-burst/bin/gstlal_snax_extract
+
3
−
2
View file @
3e130f9f
...
@@ -285,7 +285,9 @@ for subset_id, channel_subset in enumerate(data_source_info.channel_subsets, 1):
...
@@ -285,7 +285,9 @@ for subset_id, channel_subset in enumerate(data_source_info.channel_subsets, 1):
qhigh
=
options
.
q_high
qhigh
=
options
.
q_high
# generate frequency bins
# generate frequency bins
frequency_breakpoints
=
[
0
]
+
options
.
frequency_bin
+
[
fhigh
]
frequency_breakpoints
=
[
0
]
+
options
.
frequency_bin
if
fhigh
>
frequency_breakpoints
[
-
1
]:
frequency_breakpoints
.
append
(
fhigh
)
frequency_bins
=
IrregularBins
(
frequency_breakpoints
)
frequency_bins
=
IrregularBins
(
frequency_breakpoints
)
bins
[
channel
]
=
frequency_bins
bins
[
channel
]
=
frequency_bins
...
@@ -377,7 +379,6 @@ for subset_id, channel_subset in enumerate(data_source_info.channel_subsets, 1):
...
@@ -377,7 +379,6 @@ for subset_id, channel_subset in enumerate(data_source_info.channel_subsets, 1):
)
)
for
bin_idx
,
trg_head
in
features
.
items
():
for
bin_idx
,
trg_head
in
features
.
items
():
if
options
.
latency_output
:
if
options
.
latency_output
:
thishead
=
pipeparts
.
mklatency
(
thishead
=
pipeparts
.
mklatency
(
pipeline
,
pipeline
,
...
...
This diff is collapsed.
Click to expand it.
gstlal-burst/python/snax/waveforms.py
+
0
−
1
View file @
3e130f9f
...
@@ -116,7 +116,6 @@ class TemplateGenerator(object):
...
@@ -116,7 +116,6 @@ class TemplateGenerator(object):
mixer_coeffs
=
numpy
.
zeros
((
num_rows
,
num_cols
))
mixer_coeffs
=
numpy
.
zeros
((
num_rows
,
num_cols
))
for
col_idx
,
row_idx
in
enumerate
(
waveform_indices
):
for
col_idx
,
row_idx
in
enumerate
(
waveform_indices
):
mixer_coeffs
[
row_idx
,
col_idx
]
=
1
mixer_coeffs
[
row_idx
,
col_idx
]
=
1
#self._idx_to_waveform[rate][freq_idx].append(waveform)
self
.
_bin_mixer_coeffs
[
rate
][
bin_idx
]
=
mixer_coeffs
self
.
_bin_mixer_coeffs
[
rate
][
bin_idx
]
=
mixer_coeffs
...
...
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