BlockList

class sherpa.astro.io.types.BlockList(blocks: list[TableBlock | ImageBlock], header: Header | None = None)[source] [edit on github]

Bases: object

Represent a set of blocks.

This follows the FITS approach where the first block may be header only. It however does not require this.

Attributes:
header

Attributes Summary

header

An optional header.

blocks

The data for the blocks.

Attributes Documentation

header: Header | None = None

An optional header.

If set this is used to create the first block with no data.

blocks: list[TableBlock | ImageBlock]

The data for the blocks.