added check if user passed only a single catalog

This commit is contained in:
P.M. Sutter 2014-05-30 11:48:13 -05:00
parent 42ff05eab1
commit 12f819f37e

View file

@ -58,6 +58,8 @@ def plotNumberFunction(catalogList,
print "Plotting number function"
catalogList = np.atleast_1d(catalogList)
plt.clf()
plt.xlabel("$R_{eff}$ [$h^{-1}Mpc$]", fontsize=14)
@ -160,6 +162,8 @@ def plotEllipDist(catalogList,
ellipDistList = []
catalogList = np.atleast_1d(catalogList)
for (iSample,catalog) in enumerate(catalogList):
sample = catalog.sampleInfo
data = getArray(catalog.voids, 'ellipticity')