aeppl.printing.VariableWithShapePrinter#

class aeppl.printing.VariableWithShapePrinter[source]#

Print variable shape info in the preamble.

Also uses readable character names for un-named variables.

Constant arrays are only printed when their size is below a threshold set by max_line_width * max_line_height

Methods

VariableWithShapePrinter.__init__()

VariableWithShapePrinter.process(output, pstate)

param output

VariableWithShapePrinter.process_shape_info(...)

param output

VariableWithShapePrinter.process_variable_name(...)

Take a variable name from the available ones.

Attributes

available_names

default_printer

max_line_height

max_line_width