misc

module of dascore.utils source

Misc Utilities.

Functions

Name Description
all_close Return True if ar1 is allcose to ar2.
append_func Decorator to append a function to a list.
check_evenly_sampled Check if an array is evenly sampled.
get_slice Return a slice object which meets conditions in cond on array.
iter_files Use os.scan dir to iter files, optionally only for those with given
iterate Return an iterable from any object.
optional_import Import a module and return the module object if installed, else raise error.
register_func Decorator for registering a function name in a list or dict.
suppress_warnings Context manager for suppressing warnings.