LALPulsar
7.1.2.1-bf6a62b
LALSuite
LAL
LALFrame
LALMetaIO
LALSimulation
LALBurst
LALInspiral
LALInference
LALPulsar
LALApps
testDriveHoughMulti.py
Go to the documentation of this file.
1
# Copyright (C) 2022 Rodrigo Tenorio, David Keitel
2
#
3
# This program is free software; you can redistribute it and/or modify it
4
# under the terms of the GNU General Public License as published by the
5
# Free Software Foundation; either version 2 of the License, or (at your
6
# option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful, but
9
# WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11
# Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License along
14
# with this program; if not, write to the Free Software Foundation, Inc.,
15
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
17
import
subprocess
18
19
# run this test with "make check TESTS=testDriveHoughMulti"
20
# everything will be automatically put into testDriveHoughMulti.testdir
21
testdir =
"."
22
23
mfd_cml =
" "
.join(
24
[
25
"lalpulsar_Makefakedata_v5"
,
26
"--outSingleSFT=TRUE"
,
27
f
"--outSFTdir={testdir}"
,
28
'--outLabel="simulatedsignal"'
,
29
'--IFOs="H1","L1"'
,
30
'--sqrtSX="1e-22"'
,
31
"--startTime=1000000000"
,
32
f
"--duration={10 * 1800}"
,
33
"--fmin=100"
,
34
"--Band=1"
,
35
"--Tsft=1800"
,
36
]
37
)
38
39
dhm_cml =
" "
.join(
40
[
41
"lalpulsar_DriveHoughMulti"
,
42
"--sunEphemeris"
,
43
"sun00-40-DE405.dat.gz"
,
44
"--earthEphemeris"
,
45
"earth00-40-DE405.dat.gz"
,
46
"--f0"
,
47
"100.5"
,
48
"--freqBand"
,
49
"0.001"
,
50
"--skyRegion"
,
51
'"allsky"'
,
52
"--dAlpha"
,
53
"0.5"
,
54
"--dDelta"
,
55
"0.5"
,
56
"--peakThreshold"
,
57
"1.6"
,
58
"--weighAM"
,
59
"--weighNoise"
,
60
"--sftData"
,
61
f
'"{testdir}/*-10*.sft"'
,
62
"--numCand"
,
63
"100"
,
64
]
65
)
66
67
print(f
"Running MFD to generate SFTs: {mfd_cml}"
)
68
subprocess.check_call(mfd_cml, shell=
True
)
69
print(f
"Running test: {dhm_cml}"
)
70
subprocess.check_call(dhm_cml, shell=
True
)
bin
Hough
testDriveHoughMulti.py
Generated on Wed Apr 1 2026 05:18:56 for LALPulsar by
1.9.4