rootpy.context.preserve_batch_state

rootpy.context.preserve_batch_state(*args, **kwds)[source]

Context manager which ensures the batch state is the same on exit as it was on entry.