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

EigenArrays can be set, but not updated python side #38

Open
patrickstowell opened this issue Mar 23, 2024 · 2 comments
Open

EigenArrays can be set, but not updated python side #38

patrickstowell opened this issue Mar 23, 2024 · 2 comments

Comments

@patrickstowell
Copy link
Contributor

bf2 = pn.BinnedValues(pn.Binning.lin_space(0,10,5), "mc")

Works

bf2.values = [[0.5,0.5,0.1,0.1,0.1]]

Does not work

bf2.values[0] = [0.5]

@patrickstowell
Copy link
Contributor Author

patrickstowell commented Mar 23, 2024

Note that this works
bf2["DataMC"]["value"][0] = 0.1

So maybe just a docs issue for what we recommend...

@luketpickering
Copy link
Contributor

Nah, we can fix it. It's something to do with the writeable bit in the numpy wrapper. There are pybind docs on it, I just didn't get around to trying to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants