Commit 0f2c03f0 authored by Karl Wette's avatar Karl Wette

lalapps/src/pulsar: add Weave/ subdirectory

- Weave.h: common header for declarations
- test-compiler.sh.in: driver script for tests
- timestamps-*.txt: SFT timestamps files for tests

Original lalsuite-weave: 1bbd27bcc8edd7e802d3bce1fa44da7ca185c99b
parent 95afdc1c
......@@ -41,3 +41,6 @@ lalpulsar/test/sun00-19-DE414.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/sun00-19-DE421.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/tdb_2000-2019.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/te405_2000-2019.dat.gz filter=lfs diff=lfs merge=lfs -text
lalapps/src/pulsar/Weave/TestInterpolating.tar.gz filter=lfs diff=lfs merge=lfs -text
lalapps/src/pulsar/Weave/TestNonInterpolating.tar.gz filter=lfs diff=lfs merge=lfs -text
lalapps/src/pulsar/Weave/TestSingleSegment.tar.gz filter=lfs diff=lfs merge=lfs -text
......@@ -262,6 +262,7 @@ src/pulsar/Tools/lalapps_FstatMetric_v2
src/pulsar/Tools/lalapps_PrintDetectorState
src/pulsar/TwoSpect/lalapps_TwoSpect
src/pulsar/TwoSpect/lalapps_TwoSpectTemplateBank
src/pulsar/Weave/*.testdir
src/pulsar/Xray/lalapps_Intermittent
src/pulsar/Xray/lalapps_SemiCoherentBinary_v2
src/pulsar/Xray/lalapps_binary2sfts
......
......@@ -40,6 +40,7 @@ AC_CONFIG_FILES([\
src/pulsar/SidebandSearch/Makefile \
src/pulsar/Tools/Makefile \
src/pulsar/TwoSpect/Makefile \
src/pulsar/Weave/Makefile \
src/pulsar/Xray/Makefile \
src/ring/Makefile \
src/stochastic/Makefile \
......
......@@ -19,6 +19,7 @@ SUBDIRS += \
MakeSFTs \
SidebandSearch \
TwoSpect \
Weave \
Xray \
$(END_OF_LINE)
......
include $(top_srcdir)/gnuscripts/lalapps.am
TEST_EXTENSIONS = .sh
SH_LOG_COMPILER = /bin/bash $(srcdir)/test-compiler.sh
if CFITSIO
bin_PROGRAMS = \
$(END_OF_LIST)
else
SH_LOG_COMPILER += skip
endif
TESTS = \
$(END_OF_LIST)
//
// Copyright (C) 2016 Karl Wette
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with with program; see the file COPYING. If not, write to the
// Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
// MA 02111-1307 USA
//
#ifndef _WEAVE_H
#define _WEAVE_H
///
/// \defgroup lalapps_pulsar_Weave Weave Search Application
/// \ingroup lalapps_pulsar_Apps
/// \author Karl Wette
///
///
/// \file
/// \ingroup lalapps_pulsar_Weave
///
#include <stdlib.h>
#include <math.h>
#include <gsl/gsl_matrix.h>
#include <lal/LALStdlib.h>
#include <lal/ComputeFstat.h>
#include <lal/FITSFileIO.h>
#include <lal/LALBarycenter.h>
#include <lal/Segments.h>
#include <lal/LatticeTiling.h>
#include <lal/SuperskyMetrics.h>
#include <lal/VectorMath.h>
#ifdef __GNUC__
#define UNUSED __attribute__ ((unused))
#else
#define UNUSED
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif // _WEAVE_H
# Driver script for Weave tests
# Exit as soon as any error occurs
set -e
# Skip test if requested
if test "x$1" = xskip; then
echo "$0: skipping test '$2'"
exit 77;
fi
# Test script name and location
scriptname=$(expr "X$1" : "X.*/\([^/]*\)\.sh$")
scriptdir=$(cd $(expr "X$1" : "X\(.*\)/[^/]*$") && pwd)
script="${scriptdir}/${scriptname}.sh"
[ -f ${script} ]
# Source and build directories
[ "X${LAL_TEST_SRCDIR}" != X ]
[ "X${LAL_TEST_BUILDDIR}" != X ]
srcdir=$(cd ${LAL_TEST_SRCDIR} && pwd)
builddir=$(cd ${LAL_TEST_BUILDDIR} && pwd)
# Build directories containing required tools
injdir=$(cd ${builddir}/../Injections && pwd)
sftdir=$(cd ${builddir}/../SFTTools && pwd)
fitsdir=$(cd ${builddir}/../FITSTools && pwd)
fstatdir=$(cd ${builddir}/../Fstatistic && pwd)
# Create directory for test
testdir="${builddir}/${scriptname}.testdir"
if [ -d "${testdir}" ]; then
echo "$0: removing contents of directory '${testdir}'"
rm -rf "${testdir}/*"
else
mkdir -p "${testdir}"
fi
# Run test in test directory
cd "${testdir}"
echo "$0: running test '${script}' in directory '${testdir}'"
echo
source "${script}"
cd "${builddir}"
# Remove test directory, unless NOCLEANUP is set
if [ "X${NOCLEANUP}" = X ]; then
echo "$0: removing directory '${testdir}'"
rm -rf "${testdir}"
fi
# Timestamps spanning ~4 days, with irregular gaps of between 1800 and 3600 seconds
1122334455.0
1122336780.0
1122338974.0
1122341142.0
1122344551.0
1122346591.0
1122348894.0
1122351357.0
1122354883.0
1122358035.0
1122360461.0
1122362919.0
1122365114.0
1122368042.0
1122371490.0
1122374866.0
1122378464.0
1122380657.0
1122382758.0
1122385911.0
1122389289.0
1122392215.0
1122395119.0
1122397020.0
1122399568.0
1122401800.0
1122405141.0
1122408732.0
1122412038.0
1122415071.0
1122417146.0
1122420082.0
1122422354.0
1122424807.0
1122428379.0
1122431867.0
1122434543.0
1122437977.0
1122440007.0
1122441835.0
1122444119.0
1122446797.0
1122449658.0
1122452808.0
1122455580.0
1122457432.0
1122461007.0
1122464022.0
1122466983.0
1122469008.0
1122471764.0
1122474835.0
1122478327.0
1122481631.0
1122484445.0
1122486396.0
1122488504.0
1122491105.0
1122493054.0
1122495225.0
1122497174.0
1122500171.0
1122502755.0
1122505496.0
1122509025.0
1122512011.0
1122514700.0
1122517947.0
1122520172.0
1122523239.0
1122526501.0
1122529147.0
1122531173.0
1122534387.0
1122537422.0
1122540276.0
1122543202.0
1122545362.0
1122548954.0
1122552126.0
1122555533.0
1122558157.0
1122561192.0
1122564290.0
1122567762.0
1122570501.0
1122573927.0
1122576845.0
1122580206.0
1122582742.0
1122586173.0
1122588689.0
1122590504.0
1122592686.0
1122594740.0
1122597787.0
1122601229.0
1122603142.0
1122606049.0
1122608443.0
1122611827.0
1122613664.0
1122616966.0
1122619369.0
1122621224.0
1122624280.0
1122627544.0
1122630978.0
1122634573.0
1122637189.0
1122639102.0
1122641814.0
1122644862.0
1122647375.0
1122649946.0
1122652986.0
1122656056.0
1122658118.0
1122660551.0
1122663608.0
1122666015.0
1122669029.0
1122671748.0
1122674980.0
1122678065.0
# Timestamps spanning ~2 days, with regular gaps of 1800 seconds
1122334455.0
1122336255.0
1122338055.0
1122339855.0
1122341655.0
1122343455.0
1122345255.0
1122347055.0
1122348855.0
1122350655.0
1122352455.0
1122354255.0
1122356055.0
1122357855.0
1122359655.0
1122361455.0
1122363255.0
1122365055.0
1122366855.0
1122368655.0
1122370455.0
1122372255.0
1122374055.0
1122375855.0
1122377655.0
1122379455.0
1122381255.0
1122383055.0
1122384855.0
1122386655.0
1122388455.0
1122390255.0
1122392055.0
1122393855.0
1122395655.0
1122397455.0
1122399255.0
1122401055.0
1122402855.0
1122404655.0
1122406455.0
1122408255.0
1122410055.0
1122411855.0
1122413655.0
1122415455.0
1122417255.0
1122419055.0
1122420855.0
1122422655.0
1122424455.0
1122426255.0
1122428055.0
1122429855.0
1122431655.0
1122433455.0
1122435255.0
1122437055.0
1122438855.0
1122440655.0
1122442455.0
1122444255.0
1122446055.0
1122447855.0
1122449655.0
1122451455.0
1122453255.0
1122455055.0
1122456855.0
1122458655.0
1122460455.0
1122462255.0
1122464055.0
1122465855.0
1122467655.0
1122469455.0
1122471255.0
1122473055.0
1122474855.0
1122476655.0
1122478455.0
1122480255.0
1122482055.0
1122483855.0
1122485655.0
1122487455.0
1122489255.0
1122491055.0
1122492855.0
1122494655.0
1122496455.0
1122498255.0
1122500055.0
1122501855.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment