LSSTDESC / qp

Quantile Parametrization for probability distribution functions module
MIT License
10 stars 3 forks source link

Hist "quick example" is broken #191

Open hombit opened 1 year ago

hombit commented 1 year ago
bins = np.linspace(0, 3, 61)
pdfs = np.random.random((100, 61))

ens_h = qp.Ensemble(qp.hist, data=dict(bins=bins, pdfs=pdfs))

I can fix it if i change number of pdfs to 60

Also bins and especially pdfs are not very self-descriptive names.

hombit commented 1 year ago

This example misses a closing parentheses

modes = ens_i.mode(grid=np.linspace(0, 3, 501)
ens_i.set_ancil(dict(modes=modes))