--- Final Solver (used for performance test) ---
import sys
from typing import Any

sys.path.insert(0, '/app')
import seirs_ext

solve_fast = seirs_ext.solve_fast

class Solver:
    def __init__(self):
        pass
    
    def solve(self, problem: dict[str, Any], **kwargs) -> Any:
        y0 = problem['y0']
        p = problem['params']
        return solve_fast(
            problem['t0'], problem['t1'],
            y0[0], y0[1], y0[2], y0[3],
            p['beta'], p['sigma'], p['gamma'], p['omega']
        )
--- 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
    from typing import Any
    
    sys.path.insert(0, '/app')
>   import seirs_ext
E   ModuleNotFoundError: No module named 'seirs_ext'

solver.py:5: 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
    from typing import Any
    
    sys.path.insert(0, '/app')
>   import seirs_ext
E   ModuleNotFoundError: No module named 'seirs_ext'

solver.py:5: 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.43s ==========================
