Added empty contextmanager utility
This PR adds a new submodule gwpy.utils.misc
that provides null_context
, an empty contextmanager
useful in a with
statement where a context is optional (i.e. in progress bars for verbose utils.mp
).
This PR adds a new submodule gwpy.utils.misc
that provides null_context
, an empty contextmanager
useful in a with
statement where a context is optional (i.e. in progress bars for verbose utils.mp
).