--- Final Solver (used for performance test) ---
import sys
sys.path.insert(0, '/app')
import simplex_ext
import numpy as np
from typing import Any


class Solver:
    def __init__(self):
        # Warmup
        y = np.array([1.0, 1.2], dtype=np.float64)
        simplex_ext.solve(y)

    def solve(self, problem, **kwargs) -> Any:
        y = np.asarray(problem["y"], dtype=np.float64)
        result = simplex_ext.solve(y)
        return {"solution": result}
--- End Solver ---
Running performance test...
============================= test session starts ==============================
platform linux -- Python 3.12.13, pytest-9.0.2, pluggy-1.6.0
rootdir: /tests
plugins: anyio-4.13.0, jaxtyping-0.3.9
collected 3 items

../tests/test_outputs.py .EE

==================================== ERRORS ====================================
____________________ ERROR at setup of test_solver_validity ____________________

    @pytest.fixture(scope="module")
    def solver_instance() -> Any:
        """Loads the user's 'Solver' class from solver.py."""
        if not SOLVER_PATH.exists():
            pytest.fail(f"Solver file not found at {SOLVER_PATH}")
    
        spec = importlib.util.spec_from_file_location("solver", SOLVER_PATH)
        solver_module = importlib.util.module_from_spec(spec)
>       spec.loader.exec_module(solver_module)

/tests/test_outputs.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
<frozen importlib._bootstrap_external>:999: in exec_module
    ???
<frozen importlib._bootstrap>:488: in _call_with_frames_removed
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    import sys
    sys.path.insert(0, '/app')
>   import simplex_ext
E   ModuleNotFoundError: No module named 'simplex_ext'

solver.py:3: ModuleNotFoundError
____________________ ERROR at setup of test_solver_speedup _____________________

    @pytest.fixture(scope="module")
    def solver_instance() -> Any:
        """Loads the user's 'Solver' class from solver.py."""
        if not SOLVER_PATH.exists():
            pytest.fail(f"Solver file not found at {SOLVER_PATH}")
    
        spec = importlib.util.spec_from_file_location("solver", SOLVER_PATH)
        solver_module = importlib.util.module_from_spec(spec)
>       spec.loader.exec_module(solver_module)

/tests/test_outputs.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
<frozen importlib._bootstrap_external>:999: in exec_module
    ???
<frozen importlib._bootstrap>:488: in _call_with_frames_removed
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    import sys
    sys.path.insert(0, '/app')
>   import simplex_ext
E   ModuleNotFoundError: No module named 'simplex_ext'

solver.py:3: ModuleNotFoundError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../tests/test_outputs.py::test_solver_exists
ERROR ../tests/test_outputs.py::test_solver_validity - ModuleNotFoundError: N...
ERROR ../tests/test_outputs.py::test_solver_speedup - ModuleNotFoundError: No...
========================= 1 passed, 2 errors in 0.03s ==========================
