refact
This commit is contained in:
15
pina/condition/condition_interface.py
Normal file
15
pina/condition/condition_interface.py
Normal 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
|
||||
Reference in New Issue
Block a user