Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
gstlal
Commits
ed911fcc
Commit
ed911fcc
authored
Aug 09, 2019
by
Aaron Viets
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gstlal_compute_strain: Exact kappas solution runs now... but results not sensical yet
parent
6ee2014b
Pipeline
#74569
failed with stages
in 1 minute and 14 seconds
Changes
4
Pipelines
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
94 deletions
+27
-94
gstlal-calibration/bin/gstlal_compute_strain
gstlal-calibration/bin/gstlal_compute_strain
+4
-4
gstlal-calibration/gst/lal/gstlal_sensingtdcfs.c
gstlal-calibration/gst/lal/gstlal_sensingtdcfs.c
+2
-2
gstlal-calibration/python/calibration_parts.py
gstlal-calibration/python/calibration_parts.py
+13
-85
gstlal-calibration/tests/check_calibration/Makefile
gstlal-calibration/tests/check_calibration/Makefile
+8
-3
No files found.
gstlal-calibration/bin/gstlal_compute_strain
View file @
ed911fcc
...
...
@@ -1425,23 +1425,23 @@ if compute_exact_kappas and (compute_kappatst or compute_kappapum or compute_kap
pipeparts
.
mkfakesink
(
pipeline
,
tau_uim
)
if
compute_kappac
:
smooth_kctee
=
smooth_kc_nogate
=
kc
smooth_kctee
=
smooth_kc_nogate
=
pipeparts
.
mktee
(
pipeline
,
kc
)
else
:
pipeparts
.
mkfakesink
(
pipeline
,
kc
)
if
compute_fcc
:
smooth_fcctee
=
smooth_fcc_nogate
=
fcc
smooth_fcctee
=
smooth_fcc_nogate
=
pipeparts
.
mktee
(
pipeline
,
fcc
)
else
:
pipeparts
.
mkfakesink
(
pipeline
,
fcc
)
if
compute_fs
:
smooth_fs_squared_nogate
=
smooth_fs_squared
=
fs_squared
smooth_fs_squared_nogate
=
smooth_fs_squared
=
pipeparts
.
mktee
(
pipeline
,
fs_squared
)
else
:
pipeparts
.
mkfakesink
(
pipeline
,
fs_squared
)
if
compute_srcq
:
# fs / Q is a real-valued quantity, but fs and Q are not necessarily, so we compute a complex-valued 1/Q.
smooth_srcQ_inv
=
smooth_srcQ_inv_nogate
=
pipeparts
.
mktee
(
pipeline
,
calibration_parts
.
mkmultiplier
(
pipeline
,
[
pipeparts
.
mktogglecomplex
(
pipeline
,
pipeparts
.
mkmatrixmixer
(
pipeline
,
fs_over_Q
,
matrix
=
[[
1.0
,
0.0
]])),
calibration_parts
.
mkpow
(
pipeline
,
pipeparts
.
mktogglecomplex
(
pipeline
,
pipeparts
.
mkmatrixmixer
(
pipeline
,
fs_squared
,
matrix
=
[[
1.0
,
0.0
]])),
exponent
=
-
0.5
)]))
smooth_srcQ_inv
=
pipeparts
.
mktee
(
pipeline
,
calibration_parts
.
mkmultiplier
(
pipeline
,
[
pipeparts
.
mktogglecomplex
(
pipeline
,
pipeparts
.
mkmatrixmixer
(
pipeline
,
fs_over_Q
,
matrix
=
[[
1.0
,
0.0
]])),
calibration_parts
.
mkpow
(
pipeline
,
pipeparts
.
mktogglecomplex
(
pipeline
,
pipeparts
.
mkmatrixmixer
(
pipeline
,
smooth_
fs_squared
,
matrix
=
[[
1.0
,
0.0
]])),
exponent
=
-
0.5
)]))
# We need a real-valued version of Q^(-1) to write the the frames. If we have
# an optical spring, the computed Q^(-1) is imaginary, and if we have an optical
# antispring, the computed Q^(-1) is real. To get a sensible real value either
...
...
gstlal-calibration/gst/lal/gstlal_sensingtdcfs.c
View file @
ed911fcc
...
...
@@ -459,11 +459,11 @@ static gboolean set_caps(GstBaseTransform *trans, GstCaps *incaps, GstCaps *outc
if
(
!
strcmp
(
name
,
GST_AUDIO_NE
(
F32
)))
{
element
->
data_type
=
GSTLAL_SENSINGTDCFS_FLOAT
;
g_assert_cmpuint
(
unit_size_out
,
==
,
4
*
(
guint
)
channels_out
);
g_assert_cmpuint
(
unit_size_in
,
==
,
4
*
(
guint
)
channels_in
);
g_assert_cmpuint
(
unit_size_in
,
==
,
8
*
(
guint
)
channels_in
);
}
else
if
(
!
strcmp
(
name
,
GST_AUDIO_NE
(
F64
)))
{
element
->
data_type
=
GSTLAL_SENSINGTDCFS_DOUBLE
;
g_assert_cmpuint
(
unit_size_out
,
==
,
8
*
(
guint
)
channels_out
);
g_assert_cmpuint
(
unit_size_in
,
==
,
8
*
(
guint
)
channels_in
);
g_assert_cmpuint
(
unit_size_in
,
==
,
16
*
(
guint
)
channels_in
);
}
else
g_assert_not_reached
();
...
...
gstlal-calibration/python/calibration_parts.py
View file @
ed911fcc
This diff is collapsed.
Click to expand it.
gstlal-calibration/tests/check_calibration/Makefile
View file @
ed911fcc
...
...
@@ -8,9 +8,9 @@ IFO = H
# determines where to look for filters files (e.g., O1, O2, O3, ER10, ER13, ER14, PreER10, PreER13, PreER14)
OBSRUN
=
O3
START
=
$(
shell
echo
124622
6
240 - 256 | bc
)
START
=
$(
shell
echo
124622
4
240 - 256 | bc
)
#1238997618
END
=
$(
shell
echo
124622
6
240 +
120 +
256 | bc
)
END
=
$(
shell
echo
124622
5
240 + 256 | bc
)
#1240876818
SHMRUNTIME
=
600
# How much time does the calibration need to settle at the start and end?
...
...
@@ -21,6 +21,7 @@ GDSCONFIGS = Filters/O3/GDSFilters/H1GDS_1239476409_testAllCorrections.ini
LOWLATENCYCONFIGS
=
Filters/O3/GDSFilters/H1GDS_lowLatency_1239476409.ini
LOWLATENCYASYMMETRICCONFIGS
=
Filters/O3/GDSFilters/H1GDS_lowLatency_asymmetric_1239476409.ini
DCSCONFIGS
=
Filters/O3/GDSFilters/H1DCS_C01_1239472998_test.ini
EXACTKAPPASCONFIGS
=
Filters/O3/GDSFilters/H1DCS_exactKappas_1239472998.ini
DCSLINESCONFIGS
=
../../config_files/O2/H1/tests/H1DCS_AllCorrections_CleaningLines.ini
#../../config_files/O2/H1/tests/H1DCS_AllCorrections_Cleaning.ini
DCSFCCCONFIGS
=
../../config_files/O2/H1/tests/H1DCS_FreqIndepAndFccCorrections_Cleaning.ini
...
...
@@ -31,7 +32,7 @@ GDSOLDCONFIGS = Filters/ER14/GDSFilters/L1GDS_1235491416_old.ini
GDSBETTERCONFIGS
=
Filters/ER14/GDSFilters/L1GDS_1235491416_better.ini
GDSBESTCONFIGS
=
Filters/ER14/GDSFilters/L1GDS_1235491416_best.ini
all
:
pcal_DCS_transfer_functions
all
:
$(IFO)1_hoft_DCS_EXACTKAPPAS_frames.cache
###############################################
### These commands should change less often ###
...
...
@@ -87,6 +88,10 @@ $(IFO)1_hoft_DCS_frames.cache: $(IFO)1_easy_raw_frames.cache filters framesdir
GST_DEBUG
=
3 gstlal_compute_strain
--gps-start-time
$(START)
--gps-end-time
$(END)
--frame-cache
$(IFO)
1_easy_raw_frames.cache
--output-path
Frames/
$(OBSRUN)
/
$(IFO)
1/DCS/
--frame-duration
=
64
--frames-per-file
=
1
--wings
=
256
--config-file
$(DCSCONFIGS)
ls
Frames/
$(OBSRUN)
/
$(IFO)
1/DCS/
$(IFO)
-
$(IFO)
1DCS-
*
.gwf | lalapps_path2cache
>
$@
$(IFO)1_hoft_DCS_EXACTKAPPAS_frames.cache
:
$(IFO)1_easy_raw_frames.cache filters framesdir
GST_DEBUG
=
3 gstlal_compute_strain
--gps-start-time
$(START)
--gps-end-time
$(END)
--frame-cache
$(IFO)
1_easy_raw_frames.cache
--output-path
Frames/
$(OBSRUN)
/
$(IFO)
1/DCS/
--frame-duration
=
64
--frames-per-file
=
1
--wings
=
256
--config-file
$(EXACTKAPPASCONFIGS)
ls
Frames/
$(OBSRUN)
/
$(IFO)
1/DCS/
$(IFO)
-
$(IFO)
1DCS_exactKappas-
*
.gwf | lalapps_path2cache
>
$@
# In case we want to compare one calibration to another...
$(IFO)1_hoft_GDS_TEST_frames.cache
:
$(IFO)1_easy_raw_frames.cache filters framesdir
GST_DEBUG
=
3 gstlal_compute_strain
--gps-start-time
$(START)
--gps-end-time
$(END)
--frame-cache
$(IFO)
1_easy_raw_frames.cache
--output-path
Frames/
$(OBSRUN)
/
$(IFO)
1/GDS/
--frame-duration
=
64
--frames-per-file
=
1
--wings
=
0
--config-file
$(GDSTESTCONFIGS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment