ReadResult#
- class lsst.images.serialization.ReadResult(deserialized: T, metadata: dict[str, MetadataValue], butler_info: ButlerInfo | None)#
Bases:
NamedTuple,GenericA struct that can be used to return both a deserialized object and metadata associated with it, even when the in-memory type cannot hold metadata.
Attributes Summary
Butler provenance information for the dataset this file backs.
The deserialized object itself.
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.