1

I have this TParameter (a Model_TParameter_3c_double_3e__v2 to be precise) which I am trying to access via its "value" attribute which I have seen to use via the docs here

uproot.open("pathtoTParameter").value

But that doesn't work and spits out:

AttributeError: 'Model_TParameter_3c_double_3e__v2' object has no attribute 'value'

I have also read it in via root using the standard member function GetVal() and everything seemed to be working fine there.

Am I missing something? Cheers

Colm
  • 73
  • 5
  • 1
    Somehow, it's failing to be recognized; I'll have to look at an example file. Please submit it as a GitHub Issue with a file that demonstrate the bug. Meanwhile, the member can be accessed as `obj.member("fVal")`; it's the convenience method that's missing. (https://github.com/scikit-hep/uproot4/blob/390b29b40d57562cd864719885c584c42a006e23/src/uproot/behaviors/TParameter.py#L58) – Jim Pivarski May 15 '21 at 13:02

0 Answers0