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

lal_calibcorr_test.py: Make it easier to run numerous tests at once

parent bbdc1fe2
No related branches found
No related tags found
No related merge requests found
all:
python3 lal_calibcorr_test.py --filters H1GDS_1324762762_denserLines.npz --error 0.01 line-amplitude 1000
python3 lal_calibcorr_test.py --filters H1GDS_1324762762_denserLines.npz --error 0.02 line-amplitude 1000
python3 lal_calibcorr_test.py --filters H1GDS_1324762762_denserLines.npz --error 0.05 line-amplitude 1000
python3 lal_calibcorr_test.py --filters H1GDS_1324762762.npz --error 0.01 line-amplitude 1000
python3 lal_calibcorr_test.py --filters H1GDS_1324762762.npz --error 0.02 line-amplitude 1000
python3 lal_calibcorr_test.py --filters H1GDS_1324762762.npz --error 0.05 line-amplitude 1000
gds-dcs-filter-generation @ 1478990f
Subproject commit 6722121854ffda97dc33d426fa29b3b7f9c341d0
Subproject commit 1478990f0f02afff9ebc835dc9d0cd8b4fddca40
......@@ -42,6 +42,8 @@ import matplotlib.pyplot as plt
from ticks_and_grid import ticks_and_grid
from optparse import OptionParser, Option
from gstlal import pipeparts
from gstlal import calibration_parts
import test_common
......@@ -49,20 +51,19 @@ from gi.repository import Gst
from lal import LIGOTimeGPS
from ligo import segments
parser = OptionParser()
parser.add_option("--filters", metavar = "name", type = str, help = "GDS filters file to use")
parser.add_option("--error", type = float, default = 0.02, help = "Magnitude of the error to simulate")
parser.add_option("--line-amplitude", type = int, default = 1000, help = "Amplitide of injected lines, in terms of the factor by which they rise above the local noise floor in an ASD")
options, filenames = parser.parse_args()
gps_start_time = 1269120000
gps_end_time = 1269127000
chop_time = 5000
filters_name = "H1GDS_1324762762.npz"
error_magnitude = 0.05
line_amplitude = 1000
#
# =============================================================================
#
# Pipelines
#
# =============================================================================
#
filters_name = options.filters
error_magnitude = float(options.error)
line_amplitude = int(options.line_amplitude)
#
......@@ -195,7 +196,7 @@ def plot_asd(hoft, pcal, tst, pum, uim, fmin, fmax):
# Get the filters
filters = np.load("/home/aaron.viets/src/gstlal/gstlal-calibration/tests/check_calibration/gds-dcs-filter-generation/filters/PreER15/GDSFilters/H1GDS_1324762762.npz")
filters = np.load("/home/aaron.viets/src/gstlal/gstlal-calibration/tests/check_calibration/gds-dcs-filter-generation/filters/PreER15/GDSFilters/%s" % filters_name)
# Errors in the models
if os.path.exists("C_error_%dpercent" % int(100 * error_magnitude)):
......
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