optixstuff._repr

optixstuff._repr#

Shared formatting helper for hierarchical __repr__ methods.

Each leaf class in optixstuff (primary, detector, throughput elements, coronagraphs) defines its own one-line __repr__; the OpticalPath aggregator uses indent() to nest the children one level deeper. Same pattern as skyscapes._repr.

Functions#

indent(text[, prefix])

Prefix every line of text with prefix.

Module Contents#

optixstuff._repr.indent(text, prefix='  ')[source]#

Prefix every line of text with prefix.

Parameters:
Return type:

str