Commit 9f6b4e05 authored by James Clark's avatar James Clark
Browse files

looks like an extra paste crept into megaplot.py

git-svn-id: https://svn.ligo.caltech.edu/svn/bayeswave/trunk@651 c56465c9-8126-4a4f-9d7d-ac845eff4865
parent f0869bb1
......@@ -73,6 +73,14 @@ else:
#sys.path.insert(0,'/Users/megmillhouse/Desktop/O1/O2dev/cycler-0.10.0/')
svn_info = open(os.path.join(postprocesspath, 'svn_info.txt'),'r')
print "---- SVN INFO ---- "
for info_line in svn_info.readlines():
print info_line
svn_info.close()
print "---- END SVN INFO ---- "
#from cycler import cycler
from scipy import integrate
......@@ -2115,10 +2123,6 @@ def make_webpage(htmlDir, model, mdc, gps, ifoList, ifoNames, modelList, snrList
# -- Parse command line arguments
parser = argparse.ArgumentParser(description='Produce html page for a bayeswave run.')
megaplotpath = sys.argv[0]
postprocesspath = megaplotpath.rpartition('/')[0]
# -- Get basic info on the run
jobName, restrictModel, mdc, injFlag, bayeswaverunfile, ifoList, ifoNames, gps, snrList, info = readbwb()
......
......@@ -226,6 +226,15 @@ def make_skyview(directory='.', mdc=None, NSIDE=128, ra=None, dec=None, results=
# -- Write main script for command line running
if __name__ == "__main__":
# Allow navigation into specified working directory
topdir=os.getcwd()
try:
workdir=sys.argv[1]
except IndexError:
# No work directory specified, workdir=./
workdir=os.getcwd()
os.chdir(workdir)
opts, args = getopt.getopt(sys.argv[1:], "", ['directory=', 'mdc=', 'NSIDE=', 'ra=', 'dec=', 'geo'])
# -- Set default argument values
......@@ -269,3 +278,7 @@ if __name__ == "__main__":
make_skyview(directory, mdc, NSIDE, ra, dec, results)
# Move back to original dir
os.chdir(topdir)
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