Source code for cyrxnopt_analysis.transforms.Transform
from abc import ABC
from typing import List
from cyrxnopt_analysis.OptimizerResult import OptimizerResult
[docs]
class Transform(ABC):
[docs]
def map(self, results: List[OptimizerResult]):
"""Apply the transform to the list of results.
:param results: Results to transform
:type results: List[OptimizerResult]
:raises RuntimeError: This function must be overridden by chilren.
"""
raise RuntimeError("Transform.map not overridden!") # pragma: no cover