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(
259
259
or [StatementValidation()] * len(statements.cost_functions or []),
260
260
parameter_constraints=(validation.parameter_constraints if validation is not None else None)
261
261
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 []),
264
262
unformalizable_statements=(validation.unformalizable_statements if validation is not None else None)
265
263
or [StatementValidation()] * len(statements.unformalizable_statements or []),
266
264
)
@@ -269,8 +267,6 @@ def print_statements(
269
267
raise ValueError("Number of cost functions and validations do not match.")
270
268
if len(validation.parameter_constraints or []) != len(statements.parameter_constraints or []):
271
269
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.")
274
270
if len(validation.unformalizable_statements or []) != len(statements.unformalizable_statements or []):
275
271
raise ValueError("Number of unformalizable statements and validations do not match.")
276
272
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ class StatementValidationDictionary(UniversalBaseModel):
13
13
"""
14
14
15
15
cost_functions: typing.Optional[typing.List[StatementValidation]] = None
16
- structure_constraints: typing.Optional[typing.List[StatementValidation]] = None
17
16
parameter_constraints: typing.Optional[typing.List[StatementValidation]] = None
18
17
unformalizable_statements: typing.Optional[typing.List[StatementValidation]] = None
19
18
You can’t perform that action at this time.
0 commit comments