This commit is contained in:
Nicola Demo
2024-08-05 17:34:34 +02:00
parent 686b557144
commit 5245a0b68c
19 changed files with 483 additions and 173 deletions

View File

@@ -0,0 +1,15 @@
from abc import ABCMeta, abstractmethod
class ConditionInterface(metaclass=ABCMeta):
@abstractmethod
def residual(self, model):
"""
Compute the residual of the condition.
:param model: The model to evaluate the condition.
:return: The residual of the condition.
"""
pass