Commit ea6a9d50 authored by Karl Wette's avatar Karl Wette
Browse files

LALApps: use lalsuite_python.am to generate executable Python scripts

Original: f393bbcaf513da188c5a96b587dac45e7c441d13
parent 93c8c17b
......@@ -31,7 +31,6 @@ lalapps-user-env.sh
lalapps-user-env.shell
lalapps.spec
libtool
src/*/python_config.sed
src/calibration/lalapps_ComputeFactors
src/calibration/lalapps_ComputeStrainDriver
src/calibration/lalapps_NoiseComparison
......@@ -141,8 +140,6 @@ src/inspiral/posterior/lalapps_vo_nest2pos
src/inspiral/posterior/lalinference_bambi
src/inspiral/posterior/lalinference_pipe
src/inspiral/posterior/lalinference_pp_pipe
src/inspiral/posterior/python_config.sed
src/inspiral/ssipe_config.sed
src/lalapps/LALAppsBuildInfo.c
src/lalapps/LALAppsVCSInfo.c
src/lalapps/LALAppsVCSInfo.h
......@@ -150,11 +147,16 @@ src/lalapps/LALAppsVCSInfoHeader.h
src/lalapps/git_version.py
src/lalapps/lalapps_cache
src/lalapps/lalapps_fftw*_wisdom
src/lalapps/lalapps_path2cache
src/lalapps/lalapps_searchsum2cache
src/lalapps/lalapps_tconvert
src/lalapps/lalapps_version
src/online/lalapps_online_datafind
src/power/lalapps_binj
src/power/lalapps_power
src/power/lalapps_power_likelihood_pipe
src/power/lalapps_power_online_pipe
src/power/lalapps_power_pipe
src/power/sense_compare
src/pulsar/CombSearch/lalapps_CombSearch
src/pulsar/CreateEphemeris/lalapps_create_solar_system_ephemeris
......@@ -314,6 +316,8 @@ src/stochastic/lalapps_stopp
src/stochastic/lalapps_stopp_bayes
src/string/lalapps_StringAddFrame
src/string/lalapps_StringSearch
src/string/lalapps_cosmicstring_pipe
src/string/lalapps_string_cs_gamma
src/tracksearch/lalapps_tracksearch
src/tracksearch/lalapps_tracksearch_averager
src/tracksearch/lalapps_tracksearch_cutpipe
......
BUILT_SOURCES =
MOSTLYCLEANFILES =
EXTRA_DIST =
include $(top_srcdir)/gnuscripts/lalsuite_python.am
include $(top_srcdir)/gnuscripts/lalapps.am
lalapps_ComputeStrainDriver_SOURCES = ComputeStrainDriver.c
......@@ -11,34 +14,10 @@ bin_PROGRAMS = \
lalapps_NoiseComparison
if HAVE_PYTHON
bin_SCRIPTS = lalapps_strain_pipe lalapps_noise_comp_pipe
pybin_SCRIPTS = lalapps_strain_pipe lalapps_noise_comp_pipe
pkgpython_PYTHON = strain.py
endif
EXTRA_DIST = \
strain_pipe.in \
noise_comp_pipe.in \
strain.py
MOSTLYCLEANFILES = \
MOSTLYCLEANFILES += \
*.ilwd \
*.gwf
CLEANFILES = \
python_config.sed \
lalapps_strain_pipe \
lalapps_noise_comp_pipe
python_config.sed:
@-rm -f python_config.sed
@echo "s+@PYTHONLIBDIR@+@pkgpythondir@+g" > python_config.sed
@echo "s+@PYTHONPROG@+@PYTHON@+g" >> python_config.sed
@echo "s+@RINGEXECPATH@+${bindir}+g" >> python_config.sed
lalapps_strain_pipe: $(srcdir)/strain_pipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/strain_pipe.in > lalapps_strain_pipe
@chmod +x lalapps_strain_pipe
lalapps_noise_comp_pipe: $(srcdir)/noise_comp_pipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/noise_comp_pipe.in > lalapps_noise_comp_pipe
@chmod +x lalapps_noise_comp_pipe
#!@PYTHONPROG@
"""
noise_comp_pipe - standalone noise comparison pipeline driver script
......@@ -12,7 +10,7 @@ __date__ = '$Date$'
__version__ = '$Revision$'
# import standard modules and append the lalapps prefix to the python path
# import standard modules
import sys, os, shutil
import optparse
from optparse import *
......@@ -20,7 +18,6 @@ import getopt, re, string
import tempfile
import ConfigParser
from pylab import *
sys.path.append('/archive/home/channa/opt/lalapps/lib/python2.4/site-packages/lalapps')
# import the modules we need to build the pipeline
from glue import pipeline, lal
......
#!@PYTHONPROG@
"""
strain_pipe - standalone strain pipeline driver script
......@@ -11,12 +10,11 @@ __date__ = '$Date$'
__version__ = '$Revision$'
# import standard modules and append the lalapps prefix to the python path
# import standard modules
import sys, os, shutil
import getopt, re, string
import tempfile
import ConfigParser
sys.path.append('@PYTHONLIBDIR@')
# import the modules we need to build the pipeline
from glue import pipeline
......
BUILT_SOURCES =
MOSTLYCLEANFILES =
EXTRA_DIST =
include $(top_srcdir)/gnuscripts/lalsuite_python.am
include $(top_srcdir)/gnuscripts/lalapps.am
SUBDIRS = posterior
......@@ -125,7 +128,7 @@ bin_PROGRAMS = \
$(LALPULSAR_PROGS)
if HAVE_PYTHON
bin_SCRIPTS = \
pybin_SCRIPTS = \
lalapps_inspiral_pipe \
lalapps_inspiral_hipe \
lalapps_inspiral_ssipe \
......@@ -171,146 +174,6 @@ dist_bin_SCRIPTS = \
lalapps_inspiral_ckpttest \
followup/followup_InspiralDataMover.sh
python_config.sed: Makefile
@-rm -f python_config.sed
@echo "s+@PYTHONLIBDIR@+@pkgpythondir@+g" > python_config.sed
@echo "s+@PYTHONPROG@+@PYTHON@+g" >> python_config.sed
ssipe_config.sed: Makefile
@-rm -f ssipe_config.sed
@echo "s+@LALAPPSDIR@+@bindir@+g" > ssipe_config.sed
ihope_ssipe.ini: $(srcdir)/ihope_ssipe.ini.in ssipe_config.sed
$(AM_V_GEN)sed -f ssipe_config.sed $(srcdir)/ihope_ssipe.ini.in > ihope_ssipe.ini
lalapps_inspiral_pipe: $(srcdir)/inspiral_pipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/inspiral_pipe.in > lalapps_inspiral_pipe
@chmod +x lalapps_inspiral_pipe
lalapps_inspiral_hipe: $(srcdir)/inspiral_hipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/inspiral_hipe.in > lalapps_inspiral_hipe
@chmod +x lalapps_inspiral_hipe
lalapps_inspiral_ssipe: $(srcdir)/inspiral_ssipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/inspiral_ssipe.in > lalapps_inspiral_ssipe
@chmod +x lalapps_inspiral_ssipe
lalapps_plot_hipe: $(srcdir)/plot_hipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/plot_hipe.in > lalapps_plot_hipe
@chmod +x lalapps_plot_hipe
lalapps_ihope: $(srcdir)/ihope.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/ihope.in > lalapps_ihope
@chmod +x lalapps_ihope
lalapps_ihope_status: $(srcdir)/ihope_status.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/ihope_status.in > lalapps_ihope_status
@chmod +x lalapps_ihope_status
lalapps_write_ihope_page: $(srcdir)/write_ihope_page.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/write_ihope_page.in > lalapps_write_ihope_page
@chmod +x lalapps_write_ihope_page
lalapps_link_old_ihope: $(srcdir)/link_old_ihope.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/link_old_ihope.in > lalapps_link_old_ihope
@chmod +x lalapps_link_old_ihope
lalapps_compare_ini: $(srcdir)/compare_ini.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/compare_ini.in > lalapps_compare_ini
@chmod +x lalapps_compare_ini
lalapps_followup0_pipe: $(srcdir)/followup0_pipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/followup0_pipe.in > lalapps_followup0_pipe
@chmod +x lalapps_followup0_pipe
lalapps_multi_hipe: $(srcdir)/multi_hipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/multi_hipe.in > lalapps_multi_hipe
@chmod +x lalapps_multi_hipe
lalapps_trigger_hipe: $(srcdir)/trigger_hipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/trigger_hipe.in > lalapps_trigger_hipe
@chmod +x lalapps_trigger_hipe
lalapps_cohPTF_hipe: $(srcdir)/cohPTF_hipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cohPTF_hipe.in > lalapps_cohPTF_hipe
@chmod +x lalapps_cohPTF_hipe
lalapps_check_hipe_times: $(srcdir)/check_hipe_times.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/check_hipe_times.in > lalapps_check_hipe_times
@chmod +x lalapps_check_hipe_times
lalapps_inspiral_online_pipe: $(srcdir)/inspiral_online_pipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/inspiral_online_pipe.in > lalapps_inspiral_online_pipe
@chmod +x lalapps_inspiral_online_pipe
lalapps_ihope_daily_page: $(srcdir)/ihope_daily_page.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/ihope_daily_page.in > lalapps_ihope_daily_page
@chmod +x lalapps_ihope_daily_page
lalapps_flag_triggers: $(srcdir)/flag_triggers.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/flag_triggers.in > lalapps_flag_triggers
@chmod +x lalapps_flag_triggers
lalapps_check_flag: $(srcdir)/check_flag.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/check_flag.in > lalapps_check_flag
@chmod +x lalapps_check_flag
lalapps_glitch_probe: $(srcdir)/glitch_probe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/glitch_probe.in > lalapps_glitch_probe
@chmod +x lalapps_glitch_probe
lalapps_inspiral_online_pipe_inject: $(srcdir)/inspiral_online_pipe_inject.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/inspiral_online_pipe_inject.in > lalapps_inspiral_online_pipe_inject
@chmod +x lalapps_inspiral_online_pipe_inject
lalapps_generate_upper_limits: $(srcdir)/generate_upper_limits.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/generate_upper_limits.in > lalapps_generate_upper_limits
@chmod +x lalapps_generate_upper_limits
lalapps_followup0_page: $(srcdir)/followup0_page.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/followup0_page.in > lalapps_followup0_page
@chmod +x lalapps_followup0_page
lalapps_cbc_pipedown: $(srcdir)/cbc_pipedown.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cbc_pipedown.in > lalapps_cbc_pipedown
@chmod +x lalapps_cbc_pipedown
lalapps_cbc_pipedown_ssipe: $(srcdir)/cbc_pipedown_ssipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cbc_pipedown_ssipe.in > lalapps_cbc_pipedown_ssipe
@chmod +x lalapps_cbc_pipedown_ssipe
lalapps_coh_PTF_post_processing: $(srcdir)/coh_PTF_post_processing.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/coh_PTF_post_processing.in > lalapps_coh_PTF_post_processing
@chmod +x lalapps_coh_PTF_post_processing
lalapps_cbc_sbank: $(srcdir)/cbc_sbank.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cbc_sbank.in > lalapps_cbc_sbank
@chmod +x lalapps_cbc_sbank
lalapps_cbc_sbank_choose_mchirp_boundaries: $(srcdir)/cbc_sbank_choose_mchirp_boundaries.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cbc_sbank_choose_mchirp_boundaries.in > lalapps_cbc_sbank_choose_mchirp_boundaries
@chmod +x lalapps_cbc_sbank_choose_mchirp_boundaries
lalapps_cbc_sbank_splitter: $(srcdir)/cbc_sbank_splitter.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cbc_sbank_splitter.in > lalapps_cbc_sbank_splitter
@chmod +x lalapps_cbc_sbank_splitter
lalapps_cbc_sbank_merge_sims: $(srcdir)/cbc_sbank_merge_sims.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cbc_sbank_merge_sims.in > lalapps_cbc_sbank_merge_sims
@chmod +x lalapps_cbc_sbank_merge_sims
lalapps_cbc_sbank_pipe: $(srcdir)/cbc_sbank_pipe.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cbc_sbank_pipe.in > lalapps_cbc_sbank_pipe
@chmod +x lalapps_cbc_sbank_pipe
lalapps_cbc_sbank_plot_sim: $(srcdir)/cbc_sbank_plot_sim.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cbc_sbank_plot_sim.in > lalapps_cbc_sbank_plot_sim
@chmod +x lalapps_cbc_sbank_plot_sim
lalapps_cbc_sbank_sim: $(srcdir)/cbc_sbank_sim.in python_config.sed
$(AM_V_GEN)sed -f python_config.sed $(srcdir)/cbc_sbank_sim.in > lalapps_cbc_sbank_sim
@chmod +x lalapps_cbc_sbank_sim
pkgdata_DATA = \
BNSMasses.dat \
inspsrcs100Mpc.errors \
......@@ -372,7 +235,7 @@ pkgdata_DATA = \
simplify.sql \
mcmcsummary.R
EXTRA_DIST = \
EXTRA_DIST += \
$(INSPIRALSRC) \
$(TMPLTBANKSRC) \
$(SIRESRC) \
......@@ -383,50 +246,16 @@ EXTRA_DIST = \
$(COHERESRC) \
$(INSPINJSRC) \
$(SPLITBANKSRC) \
inspiral.py \
inspiralutils.py \
inspiral_pipe.in \
inspiral_online_pipe.in \
inspiral_hipe.in \
inspiral_ssipe.in \
cohPTF_hipe.in \
multi_hipe.in \
trigger_hipe.in \
ihope.in \
ihope_ssipe.ini.in \
ihope_status.in \
inspiral_online_pipe_inject.in \
check_hipe_times.in \
followup0_pipe.in \
plot_hipe.in \
write_ihope_page.in \
compare_ini.in \
link_old_ihope.in \
generate_upper_limits.in \
followup0_page.in \
cbc_pipedown.in \
cbc_pipedown_ssipe.in \
ihope_daily_page.in \
check_flag.in \
flag_triggers.in \
glitch_probe.in \
coh_PTF_post_processing.in \
cbc_sbank.in \
cbc_sbank_choose_mchirp_boundaries.in \
cbc_sbank_merge_sims.in \
cbc_sbank_pipe.in \
cbc_sbank_plot_sim.in \
cbc_sbank_sim.in \
cbc_sbank_splitter.in \
$(DATA)
ihope_ssipe.ini: $(srcdir)/ihope_ssipe.ini.in
$(AM_V_GEN)$(SED) 's|@LALAPPSDIR@|$(bindir)|' $< > $@
CLEANFILES = \
$(bin_SCRIPTS) \
python_config.sed \
ssipe_config.sed \
ihope_ssipe.ini
MOSTLYCLEANFILES = \
MOSTLYCLEANFILES += \
*INSPIRAL*.xml \
*INSPIRAL*.gwf \
*TMPLTBANK*.gwf \
......
#!@PYTHONPROG@
##############################################################################
# import standard modules and append the lalapps prefix to the python path
# import standard modules
import os, sys, re, copy
from optparse import OptionParser
import tempfile
sys.path.append('@PYTHONLIBDIR@')
##############################################################################
# import the modules we need to build the pipeline
......
#!@PYTHONPROG@
##############################################################################
# import standard modules and append the lalapps prefix to the python path
# import standard modules
import os, sys, re, copy
from optparse import OptionParser
import tempfile
sys.path.append('@PYTHONLIBDIR@')
##############################################################################
# import the modules we need to build the pipeline
......
#!@PYTHONPROG@
# Copyright (C) 2011 Nickolas Fotopoulos, Stephen Privitera
#
# This program is free software; you can redistribute it and/or modify it
......
#!@PYTHONPROG@
# Copyright (C) 2012 Nickolas Fotopoulos
#
# This program is free software; you can redistribute it and/or modify it
......
#!@PYTHONPROG@
# Copyright (C) 2011 Nickolas Fotopoulos, Stephen Privitera
#
# This program is free software; you can redistribute it and/or modify it
......
#!@PYTHONPROG@
"""
This program makes a dag to generate a stochastic template bank.
"""
__author__ = 'Stephen Privitera <stephen.privitera@ligo.org>'
##############################################################################
# import standard modules and append the lalapps prefix to the python path
# import standard modules
import sys, os, shutil
from itertools import cycle, izip
import subprocess, socket, tempfile
......
#!@PYTHONPROG@
# Copyright (C) 2011 Nickolas Fotopoulos, Stephen Privitera
#
# This program is free software; you can redistribute it and/or modify it
......
#!@PYTHONPROG@
# Copyright (C) 2011 Nickolas Fotopoulos, Stephen Privitera
#
# This program is free software; you can redistribute it and/or modify it
......
#!@PYTHONPROG@
"""
check_flag.in - test a DQ flag against a set of daily ihope triggers
for eficiency and deadtime
......
#!@PYTHONPROG@
import sys
from optparse import *
from glue import segments
......
#!@PYTHONPROG@
"""
inspiral_hipe.in - standalone inspiral pipeline driver script
......@@ -14,7 +13,7 @@ __date__ = '$Date$'
__version__ = '$Revision$'
##############################################################################
# import standard modules and append the lalapps prefix to the python path
# import standard modules
import sys, os, copy, math, shutil
import socket, time
import re, string
......@@ -23,7 +22,6 @@ import tempfile
import ConfigParser
import urlparse
import itertools
sys.path.append('@PYTHONLIBDIR@')
##############################################################################
# import the modules we need to build the pipeline
......
#!@PYTHONPROG@
from __future__ import division
"""
coh_PTF_post_processing.in - post processing driver script for coh_PTF externally triggered pipeline
......@@ -11,7 +10,7 @@ __date__ = '$Date$'
__version__ = '$Revision$'
# =============================================================================
# import standard modules and append the lalapps prefix to the python path
# import standard modules
# =============================================================================
import os,sys,ConfigParser,glob,shutil
......@@ -19,8 +18,6 @@ from glue import pipeline,lal
from optparse import OptionParser
import tempfile
sys.path.append('@PYTHONLIBDIR@')
# =============================================================================
# Initialise subDAG
# =============================================================================
......
#!@PYTHONPROG@
"""
Compare two ini files and print out their differences
"""
......@@ -7,7 +5,6 @@ Compare two ini files and print out their differences
import sys
from optparse import *
import ConfigParser
sys.path.append('@PYTHONLIBDIR@')
usage = """usage: %prog [options]
"""
......
#!@PYTHONPROG@
"""
flag_triggers.in - find DQ flags common to triggers
......
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