Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hist "quick example" is broken #191

Open
hombit opened this issue Aug 31, 2023 · 1 comment
Open

Hist "quick example" is broken #191

hombit opened this issue Aug 31, 2023 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers parameterization new/upgraded PDF parameterization need

Comments

@hombit
Copy link
Member

hombit commented Aug 31, 2023

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
Copy link
Member Author

hombit commented Aug 31, 2023

This example misses a closing parentheses

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

@aimalz aimalz added bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers parameterization new/upgraded PDF parameterization need labels Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers parameterization new/upgraded PDF parameterization need
Projects
None yet
Development

No branches or pull requests

2 participants