punchbowl.auto.control.cache_layer.psf#

Classes#

PSFLoader

Interface for passing callable objects instead of file paths to be loaded.

Functions#

wrap_if_appropriate(→ str | punchbowl.util.DataLoader)

Module Contents#

class punchbowl.auto.control.cache_layer.psf.PSFLoader(path: str)[source]#

Bases: punchbowl.auto.control.cache_layer.loader_base_class.LoaderABC[regularizepsf.ArrayPSFTransform]

Interface for passing callable objects instead of file paths to be loaded.

path#
gen_key() str[source]#

Generate a cache key

src_repr() str[source]#

Return a string representation of the source data (e.g. a file path)

load_from_disk() regularizepsf.ArrayPSFTransform[source]#

Load the object

__repr__()[source]#

Return a string representation of this loader

punchbowl.auto.control.cache_layer.psf.wrap_if_appropriate(psf_path: str) str | punchbowl.util.DataLoader[source]#