rheon.WrongTypeError¶
- class rheon.WrongTypeError[source]¶
Bases:
TypeErrorThe error raised for a value of the wrong type.
The value may be a float where a whole number is needed, one spec where a list of them is, a text column where a number is, or a
UInt128column, which rheon cannot read. It is aTypeError, the class for a value of the wrong type.Examples
spec = rp.spec.ewridge("m", targets=["y"], features=["x0"], half_life=50.0) try: rp.ModelBank(spec) # one spec, not a list of them except TypeError as e: print(type(e).__name__, str(e).split(".")[0])
WrongTypeError ModelBank: specs must be a list of specs, but it is one spec
See also
RefusedValueError, its counterpart for a value out of range.