Since RabiFlop doesn't provide a func method, this falls through to Model. Model has x = np.atleast_2d(x) to deal with the various forms of input data we allow. However, RabiFlop's func takes a tuple as an input (breaking all the type annotations!).
Options:
Don't allow this. Provide a func method which raises a NotImplementedError
Do allow this. Provide a func method which calls _func itself. This is probably the right call and would be quick to do.
Since
RabiFlop
doesn't provide afunc
method, this falls through toModel
.Model
hasx = np.atleast_2d(x)
to deal with the various forms of input data we allow. However,RabiFlop
's func takes a tuple as an input (breaking all the type annotations!).Options:
func
method which raises aNotImplementedError
func
method which calls_func
itself. This is probably the right call and would be quick to do.