File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -259,8 +259,6 @@ def print_statements(
259259 or [StatementValidation ()] * len (statements .cost_functions or []),
260260 parameter_constraints = (validation .parameter_constraints if validation is not None else None )
261261 or [StatementValidation ()] * len (statements .parameter_constraints or []),
262- structure_constraints = (validation .structure_constraints if validation is not None else None )
263- or [StatementValidation ()] * len (statements .structure_constraints or []),
264262 unformalizable_statements = (validation .unformalizable_statements if validation is not None else None )
265263 or [StatementValidation ()] * len (statements .unformalizable_statements or []),
266264 )
@@ -269,8 +267,6 @@ def print_statements(
269267 raise ValueError ("Number of cost functions and validations do not match." )
270268 if len (validation .parameter_constraints or []) != len (statements .parameter_constraints or []):
271269 raise ValueError ("Number of parameter constraints and validations do not match." )
272- if len (validation .structure_constraints or []) != len (statements .structure_constraints or []):
273- raise ValueError ("Number of structure constraints and validations do not match." )
274270 if len (validation .unformalizable_statements or []) != len (statements .unformalizable_statements or []):
275271 raise ValueError ("Number of unformalizable statements and validations do not match." )
276272
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ class StatementValidationDictionary(UniversalBaseModel):
1313 """
1414
1515 cost_functions : typing .Optional [typing .List [StatementValidation ]] = None
16- structure_constraints : typing .Optional [typing .List [StatementValidation ]] = None
1716 parameter_constraints : typing .Optional [typing .List [StatementValidation ]] = None
1817 unformalizable_statements : typing .Optional [typing .List [StatementValidation ]] = None
1918
You can’t perform that action at this time.
0 commit comments