AddressWriter#
- class lsst.pipe.base.quantum_graph.AddressWriter(indices: dict[~uuid.UUID, int] = <factory>, addresses: list[dict[~uuid.UUID, ~lsst.pipe.base.quantum_graph._multiblock.Address]] = <factory>)#
Bases:
objectA helper object for writing address files for multi-block files.
Attributes Summary
Methods Summary
write(stream, int_size)Write all addresses to a file-like object.
write_to_zip(zf, name, int_size)Write all addresses to a file in a zip archive.
Attributes Documentation
- addresses: list[dict[UUID, Address]] = <dataclasses._MISSING_TYPE object>#
Addresses to store with each UUID.
Every key in one of these dictionaries must have an entry in
indices. The converse is not true.
- indices: dict[UUID, int] = <dataclasses._MISSING_TYPE object>#
Mapping from UUID to internal integer ID.
The internal integer ID must always correspond to the index into the sorted list of all UUIDs, but this
dictneed not be sorted itself.
Methods Documentation