Report#
- class lsst.images.Report(type_name, title=None, summary=None, fields=<factory>, tables=<factory>, value_groups=<factory>, children=<factory>, inline=False, emphasis_markup=False)#
Bases:
objectA renderer-agnostic description of an object.
- Parameters:
type_name (
str)fields (
list[ReportField], default:<factory>)tables (
list[ReportTable], default:<factory>)value_groups (
list[ReportValueGroup], default:<factory>)inline (
bool, default:False)emphasis_markup (
bool, default:False)
Attributes Summary
Whether this report's headline marks spans markdown-style, as
*emphasis*and**strong**.If
True, render as a singlekey: summaryline when embedded as a child of another report, instead of a nested branch.Optional one-line hint used by
__str__.Optional headline shown above the fields.
Methods Summary
to_repr()Return a
reprstring built from the fields whose role feedsrepr.to_str()Return a compact one-line summary.
Attributes Documentation
-
emphasis_markup:
bool= False# Whether this report’s headline marks spans markdown-style, as
*emphasis*and**strong**.The headline is the heading of this report’s branch, or the single line it renders as when
inline. Marking a span rather than styling the whole line keeps the eye off the routine part of it, and a headline may mark as many spans as it needs. The delimiters are removed wherever the headline is read as plain text, sostrandreprnever show them.Emphasis never carries meaning on its own, since a plain-text export drops it, so a marked span has to read as the point it is making. Reports leave this
Falseunless they mark something, so a stray*in a value is never mistaken for a delimiter.
-
inline:
bool= False# If
True, render as a singlekey: summaryline when embedded as a child of another report, instead of a nested branch.
Methods Documentation
- to_repr()#
Return a
reprstring built from the fields whose role feedsrepr.- Return type:
Notes
Reports with no such fields describe objects that cannot be rebuilt from a string, such as those wrapping an AST mapping. Those get the angle-bracket form Python uses for objects whose
repris descriptive, rather than an empty call that would claim an eval-ability they do not have.