Functions
scenario_test_tools.util Namespace Reference

Functions

def countdown_sleep (duration, stepsize=1, text="{}")
 
def round_tuple (tup, decimals)
 

Function Documentation

def scenario_test_tools.util.countdown_sleep (   duration,
  stepsize = 1,
  text = "{}" 
)
Print the numbers of a countdown on the terminal in-place, without using a new line for each number

:param duration: How long to count down
:param stepsize: Time between steps
:param text: What text to display each tick. Must include a format string, eg. 'launch in {}...'

Definition at line 22 of file util.py.

def scenario_test_tools.util.round_tuple (   tup,
  decimals 
)
Rounding operation broadcast over a tuple

:param tup: tuple to be rounded
:param decimals: how many decimals to round to
:return: tuple of same dimension but with lower precision

Definition at line 41 of file util.py.



scenario_test_tools
Author(s): Loy van Beek
autogenerated on Wed Apr 7 2021 03:03:18