Source: factory.core/ObjDecisionMatrix.py
Manages and executes decision matrix lookups based on data
stored in a database. Uses a two-axis grid (row/col) to
resolve cell values from context inputs.
| Method | Signature | Description |
|---|---|---|
| clean_value | clean_value(value: str | int | float) -> str |
|
| is_valid_float | is_valid_float(s: str | int | float) -> bool |
|
| evaluate | evaluate(value1: str | int | float, operator: str, value2: str | int | float) -> bool |
Evaluate a condition using the unified |
| read | read(matrix_name: str, version: int | None = None) -> None |
|
| compute_matrix | compute_matrix(context: SimulationContext, run_context: dict | None = None) -> str | None |
Core matrix lookup: resolve row/col values |
| simulate | simulate(matrix_name: str, limit: int = 0) -> None |
Run matrix simulation from configured |
| get_matched_value | get_matched_value(context, field: str, run_context: dict | None = None) -> str |
|
| load_csv | load_csv(file_path: str, matrix_name: str, package: str | None = None, version: int = 1) -> None |
Import a grid CSV into the matrix tables. |
| save_csv | save_csv(file_path: str) -> None |
Export the currently loaded matrix to CSV. |
| send_email | send_email(matrix_name: str, recipients: str = '', version: int | None = None) -> None |
Send a decision matrix report email |
List all decision matrices.
Import a CSV grid as a new matrix version.
Run a decision matrix simulation.
Export a matrix to CSV grid format.
Set the DataTable for a matrix.
Send a matrix report email with grid,