ReadResult#

class lsst.images.fits.ReadResult(deserialized: T, metadata: dict[str, MetadataValue], butler_info: ButlerInfo | None)#

Bases: NamedTuple, Generic

Struct used as the return value for read.

Attributes Summary

butler_info

Butler provenance information for the dataset this file backs.

deserialized

The deserialized object itself.

metadata

Additional flexible metadata stored with the object.

Methods Summary

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes Documentation

butler_info: ButlerInfo | None#

Butler provenance information for the dataset this file backs.

deserialized: T#

The deserialized object itself.

metadata: dict[str, MetadataValue]#

Additional flexible metadata stored with the object.

Methods Documentation

count(value, /)#

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.