CompositesMap

class lsst.daf.butler.CompositesMap(config)

Bases: object

Determine whether a specific datasetType or StorageClass should be disassembled.

Parameters:
config : str, ButlerConfig, or CompositesConfig

Configuration to control composites disassembly.

Methods Summary

shouldBeDisassembled(entity) Given some choices, indicate whether the entity should be disassembled.

Methods Documentation

shouldBeDisassembled(entity)

Given some choices, indicate whether the entity should be disassembled.

Parameters:
entity : StorageClass or DatasetType or DatasetRef

Thing to test against the configuration. The name property is used to determine a match. A DatasetType will first check its name, before checking its StorageClass. If there are no matches the default will be returned. If the associated StorageClass is not a composite, will always return False.

Returns:
disassemble : bool

Returns True if disassembly should occur; False otherwise.

Raises:
ValueError

The supplied argument is not understood.