Commit a75a13d3 authored by Karl Wette's avatar Karl Wette

lalpulsar: move installed package data files from test/ to src/

parent 96adbe1b
lal/test/tools/resamp_10x4.eps filter=lfs diff=lfs merge=lfs -text
lalapps/src/string/S5-L1-cat2.txt filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/earth00-19-DE421.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/earth00-19-DE414.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/earth98.dat filter=lfs diff=lfs merge=lfs -text
lalsimulation/src/lalsimburst_btlwnbexamples.svg filter=lfs diff=lfs merge=lfs -text
lalapps/src/inspiral/MachoMasses.dat filter=lfs diff=lfs merge=lfs -text
......@@ -17,12 +15,10 @@ lalsimulation/src/lalsimburst_sinegaussianexamples.svg filter=lfs diff=lfs merge
lalapps/src/calibration/S4H1Filters.txt filter=lfs diff=lfs merge=lfs -text
lalapps/src/pulsar/HeterodyneSearch/H-CW_Injection-875206560-120.gwf filter=lfs diff=lfs merge=lfs -text
lalframe/test/H-CAL_FAC_V03-729273600-5094000.gwf filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/earth00-19-DE200.dat.gz filter=lfs diff=lfs merge=lfs -text
lalapps/src/calibration/S5H1_NoiseCompTimes.txt filter=lfs diff=lfs merge=lfs -text
lalapps/src/calibration/S5L1_NoiseCompTimes.txt filter=lfs diff=lfs merge=lfs -text
lalapps/src/string/S6-L1-cat2.txt filter=lfs diff=lfs merge=lfs -text
lalframe/test/F-TEST-600000060-60.gwf filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/earth00-19-DE405.dat.gz filter=lfs diff=lfs merge=lfs -text
lalapps/src/string/S6-H1-cat2.txt filter=lfs diff=lfs merge=lfs -text
lalframe/test/L-CAL_REF_V03-731488397-64.gwf filter=lfs diff=lfs merge=lfs -text
lalsimulation/test/reviewed_waveforms.asc filter=lfs diff=lfs merge=lfs -text
......@@ -35,22 +31,26 @@ lalapps/src/findchirp/L1response_psd.dat filter=lfs diff=lfs merge=lfs -text
lalapps/src/string/S5-H2-cat2.txt filter=lfs diff=lfs merge=lfs -text
lalapps/src/string/S5-L1segments-cat1.txt filter=lfs diff=lfs merge=lfs -text
lalinference/test/data/2016_subset.xml.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/sun00-19-DE200.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/sun00-19-DE405.dat.gz filter=lfs diff=lfs merge=lfs -text
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
lalpulsar/test/tdb_2000-2040.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/te405_2000-2040.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/earth00-40-DE200.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/earth00-40-DE405.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/earth00-40-DE421.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/earth00-40-DE430.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/sun00-40-DE200.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/sun00-40-DE405.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/sun00-40-DE421.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/test/sun00-40-DE430.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
lalpulsar/src/earth00-40-DE430.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/earth00-40-DE405.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/sun00-19-DE405.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/sun00-19-DE414.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/sun00-40-DE430.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/earth00-19-DE414.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/earth00-40-DE200.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/earth00-40-DE421.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/sun00-19-DE200.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/sun00-40-DE200.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/te405_2000-2019.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/earth00-19-DE421.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/earth00-19-DE405.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/sun00-19-DE421.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/sun00-40-DE405.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/sun00-40-DE421.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/tdb_2000-2019.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/tdb_2000-2040.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/te405_2000-2040.dat.gz filter=lfs diff=lfs merge=lfs -text
lalpulsar/src/earth00-19-DE200.dat.gz filter=lfs diff=lfs merge=lfs -text
AM_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' @AM_CPPFLAGS@
AM_CPPFLAGS = -DTEST_DATA_DIR='"$(abs_srcdir)/"' -DTEST_PKG_DATA_DIR='"$(abs_top_srcdir)/src/"' @AM_CPPFLAGS@
TEST_EXTENSIONS = .sh .m .py
......@@ -14,6 +14,7 @@ TESTS_ENVIRONMENT = \
export LAL_DEBUG_LEVEL; LAL_DEBUG_LEVEL=msglvl1,memdbg; \
export LAL_TEST_SRCDIR; LAL_TEST_SRCDIR="$(abs_srcdir)"; \
export LAL_TEST_BUILDDIR; LAL_TEST_BUILDDIR="$(abs_builddir)"; \
export LAL_TEST_PKGDATADIR; LAL_TEST_PKGDATADIR="$(abs_top_srcdir)/src"; \
lalsuite_path="$(abs_top_builddir)/octave"; \
test "x$(builddir)" = "x$(srcdir)" || lalsuite_path="$${lalsuite_path}:$(abs_top_srcdir)/octave"; \
test "x$(LAL_OCTAVE_PATH)" = x || lalsuite_path="$${lalsuite_path}:$(LAL_OCTAVE_PATH)"; \
......
......@@ -174,7 +174,31 @@ TESTS = \
lalpulsar_version \
$(END_OF_LIST)
pkgdata_DATA = \
earth00-19-DE200.dat.gz \
earth00-19-DE405.dat.gz \
earth00-19-DE414.dat.gz \
earth00-19-DE421.dat.gz \
earth00-40-DE200.dat.gz \
earth00-40-DE405.dat.gz \
earth00-40-DE421.dat.gz \
earth00-40-DE430.dat.gz \
sun00-19-DE200.dat.gz \
sun00-19-DE405.dat.gz \
sun00-19-DE414.dat.gz \
sun00-19-DE421.dat.gz \
sun00-40-DE200.dat.gz \
sun00-40-DE405.dat.gz \
sun00-40-DE421.dat.gz \
sun00-40-DE430.dat.gz \
tdb_2000-2019.dat.gz \
te405_2000-2019.dat.gz \
tdb_2000-2040.dat.gz \
te405_2000-2040.dat.gz \
$(END_OF_LIST)
EXTRA_DIST = \
$(pkgdata_DATA) \
Eccentric_and_true_anomaly.png \
LALPulsarConfig.h.in \
LUTstereo.png \
......
......@@ -101,8 +101,8 @@ main ( int argc, char *argv[] )
REAL8 startTimeREAL8 = 714180733;
REAL8 duration = 180000; /* 50 hours */
REAL8 Tsft = 1800; /* assume 30min SFTs */
char earthEphem[] = TEST_DATA_DIR "earth00-19-DE200.dat.gz";
char sunEphem[] = TEST_DATA_DIR "sun00-19-DE200.dat.gz";
char earthEphem[] = TEST_PKG_DATA_DIR "earth00-19-DE200.dat.gz";
char sunEphem[] = TEST_PKG_DATA_DIR "sun00-19-DE200.dat.gz";
//REAL8 tolerance = 2e-10; /* same algorithm, should be basically identical results */
......
......@@ -87,7 +87,7 @@ int main(void)
LALDetector *detector;
XLAL_CHECK_MAIN ( (detector = XLALGetSiteInfo ( "H1" )) != NULL, XLAL_EFUNC );
EphemerisData *edat;
XLAL_CHECK_MAIN ( (edat = XLALInitBarycenter ( TEST_DATA_DIR "earth00-19-DE405.dat.gz", TEST_DATA_DIR "sun00-19-DE405.dat.gz" )) != NULL, XLAL_EFUNC );
XLAL_CHECK_MAIN ( (edat = XLALInitBarycenter ( TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz", TEST_PKG_DATA_DIR "sun00-19-DE405.dat.gz" )) != NULL, XLAL_EFUNC );
tic = XLALGetCPUTime();
XLAL_CHECK_MAIN ( (detStates = XLALPrepareCWSignalBand ( &skypos_maxdoppler, t0, Tspan, dT, detector, edat )) != NULL, XLAL_EFUNC );
REAL8 time_XLALPrepareCWSignalBand = XLALGetCPUTime() - tic;
......
......@@ -44,7 +44,7 @@ main ( int argc, char *argv[] )
// ----- load ephemeris
EphemerisData *ephem;
XLAL_CHECK ( (ephem = XLALInitBarycenter ( TEST_DATA_DIR "earth00-19-DE405.dat.gz", TEST_DATA_DIR "sun00-19-DE405.dat.gz" )) != NULL, XLAL_EFUNC );
XLAL_CHECK ( (ephem = XLALInitBarycenter ( TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz", TEST_PKG_DATA_DIR "sun00-19-DE405.dat.gz" )) != NULL, XLAL_EFUNC );
// ----- setup injection and data parameters
LALStringVector *detNames = NULL;
......
......@@ -33,10 +33,7 @@ main(int argc, char *argv[])
XLAL_CHECK ( argc == 1, XLAL_EINVAL, "No input arguments allowed.\n" );
XLAL_CHECK ( argv != NULL, XLAL_EINVAL );
char testFile[] = "earth00-19-DE405.dat.gz";
char *testFilePath;
XLAL_CHECK ( (testFilePath = XLALFileResolvePathLong ( testFile, TEST_DATA_DIR )) != NULL, XLAL_EINVAL );
char testFilePath[] = TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz";
// read gzipped ephemeris file once with XLALCHARReadSequence() and once with XLALFileLoad()
CHARSequence *sequence = NULL;
......@@ -82,7 +79,6 @@ main(int argc, char *argv[])
XLALDestroyCHARVector ( sequence );
XLALDestroyTokenList ( tokens );
XLALDestroyParsedDataFile ( content );
XLALFree ( testFilePath );
LALCheckMemoryLeaks();
......
......@@ -188,8 +188,8 @@ void RunGeneratePulsarSignalTest(LALStatus *status)
CHAR IFO[6] = "LHO";
EphemerisData *edat = NULL;
char earthFile[] = TEST_DATA_DIR "earth00-19-DE405.dat.gz";
char sunFile[] = TEST_DATA_DIR "sun00-19-DE405.dat.gz";
char earthFile[] = TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz";
char sunFile[] = TEST_PKG_DATA_DIR "sun00-19-DE405.dat.gz";
/* containers for sky position and spindown data */
REAL8 **skyPosData;
......
......@@ -669,8 +669,8 @@ static int SuperskyTests(
.length = 1,
.sites = { lalCachedDetectors[LAL_LLO_4K_DETECTOR] }
};
EphemerisData *edat = XLALInitBarycenter( TEST_DATA_DIR "earth00-19-DE405.dat.gz",
TEST_DATA_DIR "sun00-19-DE405.dat.gz" );
EphemerisData *edat = XLALInitBarycenter( TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz",
TEST_PKG_DATA_DIR "sun00-19-DE405.dat.gz" );
XLAL_CHECK( edat != NULL, XLAL_EFUNC );
const double freq_max = 40.0;
SuperskyMetrics *metrics = XLALComputeSuperskyMetrics( SUPERSKY_METRIC_TYPE, 1, &ref_time, &segments, freq_max, &detectors, NULL, DETMOTION_SPIN | DETMOTION_PTOLEORBIT, edat );
......
......@@ -76,31 +76,7 @@ MOSTLYCLEANFILES = \
outputsft*.sft \
$(END_OF_LIST)
pkgdata_DATA = \
earth00-19-DE200.dat.gz \
earth00-19-DE405.dat.gz \
earth00-19-DE414.dat.gz \
earth00-19-DE421.dat.gz \
earth00-40-DE200.dat.gz \
earth00-40-DE405.dat.gz \
earth00-40-DE421.dat.gz \
earth00-40-DE430.dat.gz \
sun00-19-DE200.dat.gz \
sun00-19-DE405.dat.gz \
sun00-19-DE414.dat.gz \
sun00-19-DE421.dat.gz \
sun00-40-DE200.dat.gz \
sun00-40-DE405.dat.gz \
sun00-40-DE421.dat.gz \
sun00-40-DE430.dat.gz \
tdb_2000-2019.dat.gz \
te405_2000-2019.dat.gz \
tdb_2000-2040.dat.gz \
te405_2000-2040.dat.gz \
$(END_OF_LIST)
EXTRA_DIST += \
$(pkgdata_DATA) \
MultiNoiseWeightsTest1.sft \
MultiNoiseWeightsTest2.sft \
MultiNoiseWeightsTest3.sft \
......
......@@ -36,8 +36,8 @@ int main( void )
{
// Load ephemerides
char earthEphem[] = TEST_DATA_DIR "earth00-19-DE200.dat.gz";
char sunEphem[] = TEST_DATA_DIR "sun00-19-DE200.dat.gz";
char earthEphem[] = TEST_PKG_DATA_DIR "earth00-19-DE200.dat.gz";
char sunEphem[] = TEST_PKG_DATA_DIR "sun00-19-DE200.dat.gz";
EphemerisData *edat = XLALInitBarycenter( earthEphem, sunEphem );
XLAL_CHECK_MAIN( edat != NULL, XLAL_EFUNC );
......
......@@ -192,20 +192,20 @@ int main(int argc, char *argv[])
/* initialise the solar system ephemerides */
const char *earthFile = NULL, *sunFile = NULL;
if( par.ephem == NULL ){ /* default to DE405 */
earthFile = TEST_DATA_DIR "earth00-19-DE405.dat.gz";
sunFile = TEST_DATA_DIR "sun00-19-DE405.dat.gz";
earthFile = TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz";
sunFile = TEST_PKG_DATA_DIR "sun00-19-DE405.dat.gz";
}
else if( strcmp(par.ephem, "DE200") == 0 ){
earthFile = TEST_DATA_DIR "earth00-19-DE200.dat.gz";
sunFile = TEST_DATA_DIR "sun00-19-DE200.dat.gz";
earthFile = TEST_PKG_DATA_DIR "earth00-19-DE200.dat.gz";
sunFile = TEST_PKG_DATA_DIR "sun00-19-DE200.dat.gz";
}
else if( strcmp(par.ephem, "DE405") == 0 ){
earthFile = TEST_DATA_DIR "earth00-19-DE405.dat.gz";
sunFile = TEST_DATA_DIR "sun00-19-DE405.dat.gz";
earthFile = TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz";
sunFile = TEST_PKG_DATA_DIR "sun00-19-DE405.dat.gz";
}
else if( strcmp(par.ephem, "DE421") == 0 ){
earthFile = TEST_DATA_DIR "earth00-19-DE421.dat.gz";
sunFile = TEST_DATA_DIR "sun00-19-DE421.dat.gz";
earthFile = TEST_PKG_DATA_DIR "earth00-19-DE421.dat.gz";
sunFile = TEST_PKG_DATA_DIR "sun00-19-DE421.dat.gz";
}
else {
XLAL_ERROR_MAIN ( XLAL_EINVAL, "Invalid ephem='%s', allowed are 'DE200', 'DE405' or 'DE421'\n", par.ephem );
......@@ -236,10 +236,10 @@ int main(int argc, char *argv[])
/* read in the time correction file */
const char *tcFile = NULL;
if( ttype == TIMECORRECTION_TEMPO2 || ttype == TIMECORRECTION_TCB ){
tcFile = TEST_DATA_DIR "te405_2000-2019.dat.gz";
tcFile = TEST_PKG_DATA_DIR "te405_2000-2019.dat.gz";
}
else if ( ttype == TIMECORRECTION_TDB ){
tcFile = TEST_DATA_DIR "tdb_2000-2019.dat.gz";
tcFile = TEST_PKG_DATA_DIR "tdb_2000-2019.dat.gz";
}
tdat = XLALInitTimeCorrections( tcFile );
......
......@@ -315,8 +315,8 @@ int main( void )
{
// Load ephemeris data
EphemerisData *edat = XLALInitBarycenter( TEST_DATA_DIR "earth00-19-DE405.dat.gz",
TEST_DATA_DIR "sun00-19-DE405.dat.gz" );
EphemerisData *edat = XLALInitBarycenter( TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz",
TEST_PKG_DATA_DIR "sun00-19-DE405.dat.gz" );
XLAL_CHECK_MAIN( edat != NULL, XLAL_EFUNC );
// Create segment list
......
......@@ -136,8 +136,8 @@ test_XLALComputeDopplerMetrics ( void )
const REAL8 tolPh = 0.01; // 1% tolerance on phase metrics [taken from testMetricCodes.py]
// ----- load ephemeris
const char earthEphem[] = TEST_DATA_DIR "earth00-19-DE200.dat.gz";
const char sunEphem[] = TEST_DATA_DIR "sun00-19-DE200.dat.gz";
const char earthEphem[] = TEST_PKG_DATA_DIR "earth00-19-DE200.dat.gz";
const char sunEphem[] = TEST_PKG_DATA_DIR "sun00-19-DE200.dat.gz";
EphemerisData *edat = XLALInitBarycenter ( earthEphem, sunEphem );
XLAL_CHECK ( edat != NULL, XLAL_EFUNC, "XLALInitBarycenter('%s','%s') failed with xlalErrno = %d\n", earthEphem, sunEphem, xlalErrno );
......@@ -524,7 +524,7 @@ test_XLALComputeOrbitalDerivatives ( void )
// ----- load an example ephemeris, describing a pure cicular 2D
// orbit w period of one year
CHAR earthEphem[] = TEST_DATA_DIR "circularEphem.dat";
CHAR sunEphem[] = TEST_DATA_DIR "sun00-19-DE405.dat";
CHAR sunEphem[] = TEST_PKG_DATA_DIR "sun00-19-DE405.dat";
EphemerisData *edat = XLALInitBarycenter ( earthEphem, sunEphem );
XLAL_CHECK ( edat != NULL, XLAL_EFUNC, "XLALInitBarycenter('%s','%s') failed with xlalErrno = %d\n", earthEphem, sunEphem, xlalErrno );
......
......@@ -104,8 +104,8 @@
/* Locations of the earth and sun ephemeris data */
#define EARTHDATAFILE TEST_DATA_DIR "earth00-19-DE405.dat.gz";
#define SUNDATAFILE TEST_DATA_DIR "sun00-19-DE405.dat.gz";
#define EARTHDATAFILE TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz";
#define SUNDATAFILE TEST_PKG_DATA_DIR "sun00-19-DE405.dat.gz";
char EARTHDATA[] = EARTHDATAFILE;
char SUNDATA[] = SUNDATAFILE;
......
......@@ -78,8 +78,8 @@ int main(int argc, char *argv[])
REAL8 tolerance = 2e-6; /* same algorithm, should be basically identical results */
char earthEphem[] = TEST_DATA_DIR "earth00-19-DE405.dat.gz";
char sunEphem[] = TEST_DATA_DIR "sun00-19-DE405.dat.gz";
char earthEphem[] = TEST_PKG_DATA_DIR "earth00-19-DE405.dat.gz";
char sunEphem[] = TEST_PKG_DATA_DIR "sun00-19-DE405.dat.gz";
UINT4 numChecks = 1; /* Number of times to check */
......
......@@ -24,8 +24,8 @@ import lalpulsar
from lalpulsar import simulateCW as simCW
# load Earth and Sun ephemerides
earth_ephem_file = os.path.join(os.environ['LAL_TEST_SRCDIR'], 'earth00-19-DE405.dat.gz')
sun_ephem_file = os.path.join(os.environ['LAL_TEST_SRCDIR'], 'sun00-19-DE405.dat.gz')
earth_ephem_file = os.path.join(os.environ['LAL_TEST_PKGDATADIR'], 'earth00-19-DE405.dat.gz')
sun_ephem_file = os.path.join(os.environ['LAL_TEST_PKGDATADIR'], 'sun00-19-DE405.dat.gz')
ephemerides = lalpulsar.InitBarycenter(earth_ephem_file, sun_ephem_file)
# amplitude parameters
......
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