TemporaryButler#
- class lsst.images.tests.TemporaryButler(run='test_run', *, format=None, recipe=None, **kwargs)#
Bases:
objectMake a temporary butler repository.
- Parameters:
run (
str, default:'test_run') – Name of aRUNcollection to register and use as the default run for the returned butler.format (
str|None, default:None) – 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 (
str|None, default:None) – Optional write recipe to bind to every storage class registered by**kwargs.**kwargs (
str) – A mapping from a dataset type name to its storage class. For each entry, a dataset type will be registered with empty dimensions, and aDatasetRefwill 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.