sigpyproc.utils#
- sigpyproc.utils.roll_array(arr, shift, axis=0)#
Roll the elements in the array by shift positions along the given axis.
The shift direction is from the end towards the beginning of the axis, opposite to the shift direction of
roll().
- sigpyproc.utils.nearest_factor(num, fac)#
Find nearest factor Calculates the factor of num, which is closest to fac.
- sigpyproc.utils.get_logger(name, level=20, quiet=False)#
Get a fancy logging utility using Rich library.
- Parameters:
- Returns:
a logging object
- Return type:
- sigpyproc.utils.time_after_nsamps(tstart, tsamp, nsamps=0)#
Get precise time nsamps after input tstart. If nsamps is not given then just return tstart.
- sigpyproc.utils.duration_string(duration)#
Convert duration in seconds to human readable string.