Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/gems_craft/model/resolve_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def _convert_port_type(port_type: PortTypeSchema) -> PortType:
)


# TODO: these _forbid_* checks are expression validation embedded in the
# resolution pass — consider isolating them from the build logic below.
def _forbid_nonlinear(expr: ExpressionNode, context: str) -> None:
if not is_linear(expr):
raise ValueError(f"Non-linear expression is not allowed in {context}.")
Expand Down
2 changes: 1 addition & 1 deletion src/gems_craft/optim_config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
SolverOptionsConfig,
TimeScopeConfig,
load_optim_config,
validate_optim_config,
)
from .validation import validate_optim_config

__all__ = [
"ElementLocation",
Expand Down
Loading
Loading