Skip to content
Snippets Groups Projects
Commit 74a7e9cb authored by Aaron Viets's avatar Aaron Viets
Browse files

Updated plotting scripts and added state vector plot and TDCFs test

parent 85e3f99b
No related branches found
No related tags found
No related merge requests found
Pipeline #648456 failed
Showing
with 61 additions and 6 deletions
......@@ -140,14 +140,19 @@ test:
artifacts:
paths:
- tests/tests_pytest/*.txt
- tests/tests_pytest/*.png
- tests/tests_pytest/ASD_data/*.png
- tests/tests_pytest/ASD_data/*asd.txt
- tests/tests_pytest/TDCF_data/*.png
- tests/tests_pytest/TDCF_data/*Approx.txt
- tests/tests_pytest/TDCF_data/*Exact.txt
- tests/tests_pytest/pcal_data/*.png
- tests/tests_pytest/pcal_data/*Pcal_0*.txt
- tests/tests_pytest/pcal_data/*Pcal_1*.txt
- tests/tests_pytest/act_data/*.png
- tests/tests_pytest/act_data/*Act_0*.txt
- tests/tests_pytest/act_data/*Act_1*.txt
- tests/tests_pytest/act_data/*exc_0*.txt
- tests/tests_pytest/act_data/*exc_1*.txt
- tests/tests_pytest/State_Vector_data/*.png
- tests/tests_pytest/State_Vector_data/State_Vector_Approx.txt
- tests/tests_pytest/State_Vector_data/State_Vector_Exact.txt
expire_in: 24h
......
#!/usr/bin/env python3
# Copyright (C) 2023 Aaron Viets, Alexander Bartoletti
#
# This program is free software; you can redistribute it and/or modify it
......@@ -15,8 +14,8 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import numpy as np
import unittest
from gstlalcalibration import calibration_parts
from gstlal import pipeparts
from gstlalcalibration import test_common
......@@ -81,6 +80,8 @@ def ASD():
test_common.build_and_run(compute_ASD_from_Exact_cache, "compute_ASD_from_Exact_cache", segment = segments.segment((LIGOTimeGPS(0, 1000000000 * gps_start_time), LIGOTimeGPS(0, 1000000000 * gps_end_time))))
plot_ASD(hoft_f = 'Approx_hoft_asd.txt', clean_f = 'Approx_clean_asd.txt')
plot_ASD(hoft_f = 'Exact_hoft_asd.txt', clean_f = 'Exact_clean_asd.txt')
plot_ASD(hoft_f = 'Approx_hoft_asd.txt', clean_f = 'Approx_clean_asd.txt', standard = 'Approx_hoft_asd_standard.txt')
plot_ASD(hoft_f = 'Exact_hoft_asd.txt', clean_f = 'Exact_clean_asd.txt', standard = 'Exact_hoft_asd_standard.txt')
rms('H')
rms('C')
#!/usr/bin/env python3
# Copyright (C) 2024 Aaron Viets, Alexander Bartoletti
#
# This program is free software; you can redistribute it and/or modify it
......
#!/usr/bin/env python3
# Copyright (C) 2023 Aaron Viets, Alexander Bartoletti
#
# This program is free software; you can redistribute it and/or modify it
......@@ -34,6 +33,7 @@ from ligo import segments
from gstlalcalibration import test_common
from tests.tests_pytest.STV_error import check_bits
from tests.tests_pytest.plot import plot_statevector
ifo = 'H1'
......@@ -62,6 +62,8 @@ def state_vector_Exact(pipeline, name):
def State_Vector():
test_common.build_and_run(state_vector_Approx, "state_vector_Approx", segment = segments.segment((LIGOTimeGPS(0, 1000000000 * gps_start_time), LIGOTimeGPS(0, 1000000000 * gps_end_time))))
test_common.build_and_run(state_vector_Exact, "state_vector_Exact", segment = segments.segment((LIGOTimeGPS(0, 1000000000 * gps_start_time), LIGOTimeGPS(0, 1000000000 * gps_end_time))))
plot_statevector(Approx_txtfilename)
plot_statevector(Exact_txtfilename)
check_bits(Approx_txtfilename)
check_bits(Exact_txtfilename)
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment