You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add two ufloats together, I go from a Variable to an AffineScalarFunc. Given the name ufloat, I expect these objects to behave similarly to a float and return the same type as the original object.
v=u+utype(v)
uncertainties.core.AffineScalarFunc
It would be more intuitiave for the class the user sees to be called UFloat.
Could a single class be exposed to the user, rather than Variable and AffineScalarFunc?
The text was updated successfully, but these errors were encountered:
I might suggest also inverting the use of UFloat as an alias for AffineScalarFunc. That is, I think the main interface and way of thinking of the basic object is as a UFloat, and the name "AffineScalarFunc" is slightly odd and confusing to see in exceptions.
The technical guide states
UFloat
is the recommended class to use forisinstance
checks.UFloat
to beUFloat
, notAffineScalarFunc
ufloat
to be aUFloat
, or at least aAffineScalarFunc
since that's what I imported.Variable
to anAffineScalarFunc
. Given the name ufloat, I expect these objects to behave similarly to a float and return the same type as the original object.It would be more intuitiave for the class the user sees to be called UFloat.
Could a single class be exposed to the user, rather than
Variable
andAffineScalarFunc
?The text was updated successfully, but these errors were encountered: