NUISANCEMC / nuisance3

GNU General Public License v3.0
0 stars 1 forks source link

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

Open patrickstowell opened 8 months ago

patrickstowell commented 8 months ago

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 commented 8 months ago

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

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

luketpickering commented 8 months ago

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