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
3f4e2261
Commit
3f4e2261
authored
7 years ago
by
Madeline Wade
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_clean_strain now works for --remove-callines option
parent
47502a1e
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-calibration/bin/gstlal_clean_strain
+5
-5
5 additions, 5 deletions
gstlal-calibration/bin/gstlal_clean_strain
with
5 additions
and
5 deletions
gstlal-calibration/bin/gstlal_clean_strain
+
5
−
5
View file @
3f4e2261
...
@@ -243,7 +243,7 @@ demodulatesr = options.demodulation_sample_rate
...
@@ -243,7 +243,7 @@ demodulatesr = options.demodulation_sample_rate
hoft_caps
=
"
audio/x-raw, format=F64LE, rate=%d, channel-mask=(bitmask)0x0
"
%
hoftsr
hoft_caps
=
"
audio/x-raw, format=F64LE, rate=%d, channel-mask=(bitmask)0x0
"
%
hoftsr
kappa_caps
=
"
audio/x-raw, format=F32LE, rate=%d, channel-mask=(bitmask)0x0
"
%
kappasr
kappa_caps
=
"
audio/x-raw, format=F32LE, rate=%d, channel-mask=(bitmask)0x0
"
%
kappasr
ref_factors_caps
=
"
audio/x-raw, format=F64LE, rate=%d, channel-mask=(bitmask)0x0
"
%
options
.
ref_channels_sr
ref_factors_caps
=
"
audio/x-raw, format=F64LE, rate=%d, channel-mask=(bitmask)0x0
"
%
options
.
ref_channels_sr
tstexccaps
=
"
audio/x-raw, format=F64LE, rate=%d
"
%
options
.
tst_exc_sample_rate
tstexccaps
=
"
audio/x-raw, format=F64LE, rate=%d
, channel-mask=(bitmask)0x0
"
%
options
.
tst_exc_sample_rate
complex_caps
=
"
audio/x-raw, format=Z128LE, rate=%d, channel-mask=(bitmask)0x0
"
%
demodulatesr
complex_caps
=
"
audio/x-raw, format=Z128LE, rate=%d, channel-mask=(bitmask)0x0
"
%
demodulatesr
integration_samples
=
int
(
options
.
demodulation_filter_time
)
*
demodulatesr
integration_samples
=
int
(
options
.
demodulation_filter_time
)
*
demodulatesr
...
@@ -426,7 +426,7 @@ if not options.no_dq_vector:
...
@@ -426,7 +426,7 @@ if not options.no_dq_vector:
"""
"""
if
options
.
remove_callines
:
if
options
.
remove_callines
:
if
remove_esd_act_line
and
not
options
.
factors_from_filters_file
:
if
remove_esd_act_line
and
not
options
.
factors_from_filters_file
:
# EP10 is needed to remove the ESD line
# EP10 is needed to remove the ESD line
channel_list
.
extend
(((
instrument
,
options
.
EP10_real
),
(
instrument
,
options
.
EP10_imag
)))
channel_list
.
extend
(((
instrument
,
options
.
EP10_real
),
(
instrument
,
options
.
EP10_imag
)))
headkeys
.
extend
((
"
EP10_real
"
,
"
EP10_imag
"
))
headkeys
.
extend
((
"
EP10_real
"
,
"
EP10_imag
"
))
...
@@ -529,9 +529,9 @@ if options.data_source == "frames" and hoft_frame_segments is not None:
...
@@ -529,9 +529,9 @@ if options.data_source == "frames" and hoft_frame_segments is not None:
if
options
.
remove_callines
:
if
options
.
remove_callines
:
if
not
options
.
factors_from_filters_file
:
if
not
options
.
factors_from_filters_file
:
EP10_real
=
calibration_parts
.
caps_and_progress
(
pipeline
,
head_dict
[
"
EP10_real
"
],
ref_factors_caps
,
"
EP10_real
"
)
EP10_real
=
calibration_parts
.
caps_and_progress
(
pipeline
,
head_dict
[
"
EP10_real
"
],
ref_factors_caps
,
"
EP10_real
"
)
EP10_real
=
calibration_parts
.
mkresample
(
pipeline
,
EP10_real
,
0
,
False
,
tstexccaps
)
EP10_real
=
calibration_parts
.
mkresample
(
pipeline
,
EP10_real
,
0
,
False
,
"
audio/x-raw, format=F64LE, rate=%d, channel-mask=(bitmask)0x0
"
%
demodulatesr
)
EP10_imag
=
calibration_parts
.
caps_and_progress
(
pipeline
,
head_dict
[
"
EP10_imag
"
],
ref_factors_caps
,
"
EP10_imag
"
)
EP10_imag
=
calibration_parts
.
caps_and_progress
(
pipeline
,
head_dict
[
"
EP10_imag
"
],
ref_factors_caps
,
"
EP10_imag
"
)
EP10_imag
=
calibration_parts
.
mkresample
(
pipeline
,
EP10_imag
,
0
,
False
,
tstexccaps
)
EP10_imag
=
calibration_parts
.
mkresample
(
pipeline
,
EP10_imag
,
0
,
False
,
"
audio/x-raw, format=F64LE, rate=%d, channel-mask=(bitmask)0x0
"
%
demodulatesr
)
tstexc
=
calibration_parts
.
caps_and_progress
(
pipeline
,
head_dict
[
"
tstexc
"
],
tstexccaps
,
"
tstexc
"
)
tstexc
=
calibration_parts
.
caps_and_progress
(
pipeline
,
head_dict
[
"
tstexc
"
],
tstexccaps
,
"
tstexc
"
)
...
@@ -725,7 +725,7 @@ strain = calibration_parts.caps_and_progress(pipeline, hoft_head_dict["hoft"], h
...
@@ -725,7 +725,7 @@ strain = calibration_parts.caps_and_progress(pipeline, hoft_head_dict["hoft"], h
remove_from_strain
=
pipeparts
.
mkaudioamplify
(
pipeline
,
remove_from_strain
,
-
1.0
)
remove_from_strain
=
pipeparts
.
mkaudioamplify
(
pipeline
,
remove_from_strain
,
-
1.0
)
cleaned_strain
=
calibration_parts
.
mkadder
(
pipeline
,
calibration_parts
.
list_srcs
(
pipeline
,
[
strain
,
short_queue
],
[
remove_from_strain
,
long_queue
]))
cleaned_strain
=
calibration_parts
.
mkadder
(
pipeline
,
calibration_parts
.
list_srcs
(
pipeline
,
[
strain
,
short_queue
],
[
remove_from_strain
,
long_queue
]))
cleaned_strain
=
pipeparts
.
mkprogressreport
(
pipeline
,
cleaned_strain
,
"
progress_hoft_cleand_%s
"
%
instrument
)
cleaned_strain
=
pipeparts
.
mkprogressreport
(
pipeline
,
cleaned_strain
,
"
progress_hoft_clean
e
d_%s
"
%
instrument
)
# Put the units back to strain before writing to frames
# Put the units back to strain before writing to frames
cleaned_straintagstr
=
"
units=strain,channel-name=%sCALIB_STRAIN_CLEAN%s,instrument=%s
"
%
(
chan_prefix
,
chan_suffix
,
instrument
)
cleaned_straintagstr
=
"
units=strain,channel-name=%sCALIB_STRAIN_CLEAN%s,instrument=%s
"
%
(
chan_prefix
,
chan_suffix
,
instrument
)
...
...
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