33from pina ._src .condition .condition_base import ConditionBase
44from pina ._src .core .label_tensor import LabelTensor
55from pina ._src .core .graph import Graph
6- from pina ._src .equation .equation_interface import EquationInterface
6+ from pina ._src .equation .base_equation import BaseEquation
77from pina ._src .condition .data_manager import _DataManager
88
99
@@ -32,7 +32,7 @@ class InputEquationCondition(ConditionBase):
3232 # Available input data types
3333 __fields__ = ["input" , "equation" ]
3434 _avail_input_cls = (LabelTensor , Graph )
35- _avail_equation_cls = EquationInterface
35+ _avail_equation_cls = BaseEquation
3636
3737 def __new__ (cls , input , equation ):
3838 """
@@ -41,7 +41,7 @@ def __new__(cls, input, equation):
4141
4242 :param input: The input data for the condition.
4343 :type input: LabelTensor | Graph | list[Graph] | tuple[Graph]
44- :param EquationInterface equation: The equation to be satisfied over the
44+ :param BaseEquation equation: The equation to be satisfied over the
4545 specified ``input`` data.
4646 :return: The subclass of InputEquationCondition.
4747 :rtype: pina.condition.input_equation_condition.
@@ -61,7 +61,7 @@ def __new__(cls, input, equation):
6161 # Check equation type
6262 if not isinstance (equation , cls ._avail_equation_cls ):
6363 raise ValueError (
64- "The equation must be an instance of EquationInterface ."
64+ "The equation must be an instance of BaseEquation ."
6565 )
6666
6767 return super ().__new__ (cls )
@@ -90,7 +90,7 @@ def equation(self):
9090 Return the equation associated with this condition.
9191
9292 :return: Equation associated with this condition.
93- :rtype: EquationInterface
93+ :rtype: BaseEquation
9494 """
9595 return self ._equation
9696
@@ -99,11 +99,9 @@ def equation(self, value):
9999 """
100100 Set the equation associated with this condition.
101101
102- :param EquationInterface value: The equation to associate with this
102+ :param BaseEquation value: The equation to associate with this
103103 condition
104104 """
105- if not isinstance (value , EquationInterface ):
106- raise TypeError (
107- "The equation must be an instance of EquationInterface."
108- )
105+ if not isinstance (value , BaseEquation ):
106+ raise TypeError ("The equation must be an instance of BaseEquation." )
109107 self ._equation = value
0 commit comments