mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
added check if user passed only a single catalog
This commit is contained in:
parent
42ff05eab1
commit
12f819f37e
1 changed files with 4 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue