piglot.objectives.fitting.Reference
- class Reference(filename: str, output_dir: str, x_col: int = 1, y_col: int = 2, skip_header: int = 0, transformer: ResponseTransformer | None = None, filter_tol: float = 0.0, show: bool = False)[source]
Bases:
objectContainer for reference solutions.
Methods
Get the data column of the reference.
Get the time column of the reference.
Check if the reference has filtering.
Prepare the reference data.
Read the reference from the configuration dictionary.
- has_filtering() bool[source]
Check if the reference has filtering.
Returns
- bool
Whether the reference has filtering.
- static read(filename: str, config: Dict[str, Any], output_dir: str) Reference[source]
Read the reference from the configuration dictionary.
Parameters
- filenamestr
Path to the reference file.
- configDict[str, Any]
Configuration dictionary.
- output_dir: str
Output directory.
Returns
- Reference
Reference to use for this problem.