Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Fix pairplots_posteriors #79

Open
cranedroesch opened this issue Nov 4, 2020 · 0 comments
Open

Fix pairplots_posteriors #79

cranedroesch opened this issue Nov 4, 2020 · 0 comments

Comments

@cranedroesch
Copy link
Contributor

currently gives following error when uncommented (towards bottom of _01_GOF_sims):

	Traceback (most recent call last):
	  File "_01_GOF_sims.py", line 740, in <module>
	    main()
	  File "_01_GOF_sims.py", line 728, in main
	    plt_pairplot_posteriors(toplot, figdir, prefix=prefix)
	  File "/Users/crandrew/projects/chime_sims/_02_munge_chains.py", line 181, in plt_pairplot_posteriors
	    grid = sns.PairGrid(data=df.sample(n))
	  File "/opt/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py", line 5061, in sample
	    locs = rs.choice(axis_length, size=n, replace=replace, p=weights)
	  File "mtrand.pyx", line 946, in numpy.random.mtrand.RandomState.choice
	ValueError: Cannot take a larger sample than population when 'replace=False'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant