tools.CoefficientAccessor#

class bartorch.tools.CoefficientAccessor#

Bases: Protocol

Source of a coefficient table that is not a file.

An object with a read_coefficients() method returning the table’s text or bytes, for a table held by a scanner or a service. GradientCoefficients.from_file() and Gradunwarp accept one wherever they accept a path; an optional name attribute labels it.

read_coefficients()#

The contents of the coefficient table, as text or UTF-8 bytes.