Commit 85a43be8 authored by Jonah Kanner's avatar Jonah Kanner 🤓
Browse files

Made megasky backward compatible

git-svn-id: https://svn.ligo.caltech.edu/svn/bayeswave/trunk@256 c56465c9-8126-4a4f-9d7d-ac845eff4865
parent 037f0ba7
......@@ -82,7 +82,11 @@ def make_skyview(directory='.', mdc=None, NSIDE=256, results=None):
# num, L, ralist, sin_dec, psi, e, dA, dphi, dt = np.loadtxt(filename, unpack=True)
print "Extracting RA/DEC samples"
filename = './chains/' + jobname + 'signal_extchain.dat.0'
data = np.loadtxt(filename, unpack=True)
try:
data = np.loadtxt(filename, unpack=True)
except:
filename = './chains/' + jobname + 'signal_1_extchain.dat.0'
data = np.loadtxt(filename, unpack=True)
ralist = data[2]
sin_dec = data[3]
print "Total samples are {0}".format(ralist.size)
......
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