cavcalc.output.BaseOutput#

Overview

class cavcalc.output.BaseOutput(phys_args: tuple[cavcalc.parameters.parameter.ArgParameter])#

Bases: ABC

Abstract base class for output objects. Both SingleOutput and MultiOutput derive from this type.

Properties

BaseOutput.given

A dictionary of the given parameter names with their corresponding ArgParameter values.

Methods

BaseOutput.__init__(phys_args)

BaseOutput.print(**kwargs)

Prints a string representation of the output, in an identical style to the CLI.

BaseOutput.save(file)

Saves the output object to the specified file, in a binary serialised Python object format (via pickle).