skyscapes._repr#
Shared formatting helpers for hierarchical __repr__ methods.
Each leaf class in skyscapes (atmospheres, disks, stars, zodi) defines
its own multi-line __repr__; aggregator classes (Planet, System,
Scene) use indent() to nest the children one level deeper. The
result is a tree-shaped summary that lets you call repr(scene) in
a notebook and see everything in the scene at a glance.
Functions#
|
Prefix every line of |
|
Format a scalar or small array compactly. |
Module Contents#
- skyscapes._repr.indent(text, prefix=' ')[source]#
Prefix every line of
textwithprefix.Used by aggregator-class reprs (
Scene,System,Planet) to nest the child reprs one level deeper.