llg3d.benchmarks.utils

Utilities for benchmarks.

Classes

ChdirTemporaryDirectory([suffix, prefix, ...])

Context manager to create and change to a temporary directory.

class ChdirTemporaryDirectory(suffix=None, prefix=None, dir=None, ignore_cleanup_errors=False)[source]

Bases: TemporaryDirectory

Context manager to create and change to a temporary directory.

On exit, returns to the previous working directory.