dymoesco.utils

Module for helper functions.

Functions

modpi2pi(x)

mod x such that it is between \([-\pi, \pi)\).

modrange(x, low, high)

mod x such that it is between [low, high).

parse_and_setup_logging()

uses argparse to determine which logging level to use.

turn_off_logging_wrapper(f)

wrapper to return logging level to WARNING while executing function.