Open MichaelTiemannOSC opened 1 year ago
As an additional example, when I create an array of uncertainties, an element of that array similarly looks like a zero-dimensional array, not a simple Uncertainty:
>>> yy = Uncertainty([1., 2., 3.,], [4., 5., 6.,])
>>> yy
[1.0 +/- 4.0, 2.0 +/- 5.0, 3.0 +/- 6.0]
>>> yy[1]
[2.0 +/- 5.0]
>>> yy[1].value
array(2.)
>>> yy[1].error
array(5.)
>>>
I have attempted to duplicate the first example in the README:
The zero-dimensional arrays are causing problems. They can be explicitly casted to floats, but that's not convenient.