From 12f819f37e8748403320346654da10e2c80f4c5c Mon Sep 17 00:00:00 2001 From: "P.M. Sutter" Date: Fri, 30 May 2014 11:48:13 -0500 Subject: [PATCH] added check if user passed only a single catalog --- python_tools/void_python_tools/voidUtil/plotUtil.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python_tools/void_python_tools/voidUtil/plotUtil.py b/python_tools/void_python_tools/voidUtil/plotUtil.py index 2314470..0624c60 100644 --- a/python_tools/void_python_tools/voidUtil/plotUtil.py +++ b/python_tools/void_python_tools/voidUtil/plotUtil.py @@ -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')