One more suggestion: since the arguments are scalars, I suggest using Python's builtin function `max` here instead of `np.maximum`.  It is just as clear, it returns the correct type, and it is about 8 times faster (not that the speed of this one statement will have much impact on the overall performance of this method).