LALPulsar
7.1.1.1-eeff03c
LALSuite
LAL
LALFrame
LALMetaIO
LALSimulation
LALBurst
LALInspiral
LALInference
LALPulsar
LALApps
testHierarchicalSearch.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=testHierarchicalSearch"
20
# everything will be automatically put into testHierarchicalSearch.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
hs_cml =
" "
.join(
40
[
41
"lalpulsar_HierarchicalSearch"
,
42
"--ephemSun=sun00-40-DE405.dat.gz"
,
43
"--ephemEarth=earth00-40-DE405.dat.gz"
,
44
"--method=0"
,
45
"--Freq=100.5"
,
46
"--dFreq=0.001"
,
47
"--FreqBand=0.01"
,
48
'--skyRegion="allsky"'
,
49
f
'--DataFiles1="{testdir}/*-10*.sft"'
,
50
f
"--tStack={1800 * 5}"
,
51
"--printCand1"
,
52
f
"--fnameout=HS_test"
,
53
]
54
)
55
56
print(f
"Running MFD to generate SFTs: {mfd_cml}"
)
57
subprocess.check_call(mfd_cml, shell=
True
)
58
print(f
"Running test: {hs_cml}"
)
59
subprocess.check_call(hs_cml, shell=
True
)
bin
HoughFstat
testHierarchicalSearch.py
Generated on Tue Dec 16 2025 05:42:16 for LALPulsar by
1.9.4