Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-12 08:24:54

0001 """Small Python callable used to verify Slurm python-evaluator rejection."""
0002 
0003 from __future__ import annotations
0004 
0005 from typing import Any, Dict
0006 
0007 
0008 def compute_with_context(context: Any, scale: float = 1.0) -> Dict[str, float]:
0009     """Return a tiny deterministic payload from design-point context."""
0010     design_point = getattr(context, "design_point", {}) or {}
0011     base = float(design_point.get("DTLZ2_variables.x1", 0.0))
0012     return {"f1": base * scale, "f2": (1.0 - base) * scale}