splintered-reality / py_trees

Python implementation of behaviour trees.
Other
415 stars 139 forks source link

Wrong Error Message Timers.py #435

Open ge75buc opened 5 months ago

ge75buc commented 5 months ago

Dear PyTrees-Team,

in line 59 of timers.py (https://github.com/splintered-reality/py_trees/blob/devel/py_trees/timers.py#L59) the error message suggests, that the input can be of type float OR int, while the actual check only accepts type float.

While the behaviour is correct, the error-message may be reformulated to: "Timer: duration should be float, but you passed in {}".format( type(duration)

CleanBandit5595 commented 5 months ago

yup, I've mentioned it here https://github.com/splintered-reality/py_trees/issues/432

no respose yet...