AddressRow

class lsst.pipe.base.quantum_graph.AddressRow(key: ~uuid.UUID, index: int, addresses: list[lsst.pipe.base.quantum_graph._multiblock.Address] = <factory>)

Bases: object

The in-memory representation of a single row in an address file.

Attributes Summary

addresses

Offsets and sizes into multi-block files.

index

Monotonically increasing integer ID; unique within this file only.

key

Universally unique identifier for this row.

Methods Summary

read(stream, n_addresses, int_size)

Read this address row from a file-like object.

write(stream, int_size)

Write this address row to a file-like object.

Attributes Documentation

addresses: list[lsst.pipe.base.quantum_graph._multiblock.Address]

Offsets and sizes into multi-block files.

index: int

Monotonically increasing integer ID; unique within this file only.

key: UUID

Universally unique identifier for this row.

Methods Documentation

classmethod read(stream: IO[bytes], n_addresses: int, int_size: int) AddressRow

Read this address row from a file-like object.

Parameters:
streamtyping.IO [ bytes ]

Binary file-like object.

n_addressesint

Number of addresses included in each row.

int_sizeint

Number of bytes to use for all integers.

write(stream: IO[bytes], int_size: int) None

Write this address row to a file-like object.

Parameters:
streamtyping.IO [ bytes ]

Binary file-like object.

int_sizeint

Number of bytes to use for all integers.