csvcurve#

class ConfigModel(*, file)[source]#

Bases: BaseModel

Configuration model for CSV curve

Parameters:

file (str) – CSV file that contains the curve (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.

file: str#
class CSVCurve(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)