TemporaryButler#
- class lsst.images.tests.TemporaryButler(run: str = 'test_run', *, format: str | None = None, recipe: str | None = None, **kwargs: str)#
Bases:
objectMake a temporary butler repository.
Parameters#
- run
Name of a
RUNcollection to register and use as the default run for the returned butler.- format
Optional on-disk format name (
fits,json,sdf,zarr, …) to bind to every storage class registered by**kwargs. When set, the datastore config is overlaid so thatGenericFormatterwrites that format for those storage classes, overriding its.fitsdefault. Leave asNoneto keep the default formatter behaviour.- recipe
Optional write recipe to bind to every storage class registered by
**kwargs.- **kwargs
A mapping from a dataset type name to its storage class. For each entry, a dataset type will be registered with empty dimensions, and a
DatasetRefwill be created and added as an attribute of this class.
Notes#
pytest.skipis called when the context manager is entered iflsst.daf.butlercould not be imported, skipping the current test.