inline_curve#

class ConfigModel(*, mat)[source]#

Bases: BaseModel

Configuration model for inline curve

Parameters:

mat (list[list[float]]) – Curve data (n rows, 2 columns)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

mat: list[list[float]]#
class InlineCurve(cfg)[source]#

Bases: Curve

Class for load CSV (x,y) curve

get_curve()[source]#

Get the curve data.

Returns:

np.array – Curve data as a 2D numpy array of shape (n, 2)