Starting CodePDE cns1d PDE Test Suite
==========================================
✅ Reference dataset present: /app/data/1D_CFD_Rand_Eta0.1_Zeta0.1_periodic_Train.hdf5
✅ solver.py present and non-empty
📄 Preview of solver.py (first 10 lines):
import numpy as np


def _deriv1(f, dx):
    """4th order central first derivative with periodic BC."""
    return (-np.roll(f, -2) + 8.0 * np.roll(f, -1) - 8.0 * np.roll(f, 1) + np.roll(f, 2)) / (12.0 * dx)


def _deriv2(f, dx):
    """4th order central second derivative with periodic BC."""

🧪 Running pytest tests with nRMSE quality evaluation...
============================= test session starts ==============================
platform linux -- Python 3.11.14, pytest-9.0.3, pluggy-1.6.0 -- /usr/local/bin/python3.11
cachedir: .pytest_cache
rootdir: /tests
collecting ... collected 1 item

../tests/test_outputs.py::test_nrmse_accuracy ✓ solver function exists and is callable
✓ nRMSE_evaluator.py found
🧪 Running nRMSE evaluator...
data_file: /app/data/1D_CFD_Rand_Eta0.1_Zeta0.1_periodic_Train.hdf5
Command: python /tests/nRMSE_evaluator.py --dataset-path-for-eval /app/data/1D_CFD_Rand_Eta0.1_Zeta0.1_periodic_Train.hdf5 --eta 0.1
nRMSE Evaluator Output:
Loaded data with shape: (100, 101, 1024), (100, 101, 1024), (100, 101, 1024), (101,)
##### Running the solver on the given dataset #####
##### Finished #####
Result summary
nRMSE: 2.514e-01	| Time: 32.12s	| 

📊 Parsed Results:
  - nRMSE: 0.251400
  - Time: 32.12s
  - Reference nRMSE threshold: 0.05
  - Continuous reward: 0.165893
  - Legacy threshold result: FAIL
✅ Evaluation completed! nRMSE=0.251400, reward=0.165893, Time=32.12s
PASSED

=============================== warnings summary ===============================
test_outputs.py::test_nrmse_accuracy
  /usr/local/lib/python3.11/site-packages/_pytest/python.py:170: PytestReturnNotNoneWarning: Test functions should return None, but test_outputs.py::test_nrmse_accuracy returned <class 'tuple'>.
  Did you mean to use `assert` instead of `return`?
  See https://docs.pytest.org/en/stable/how-to/assert.html#return-not-none for more information.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../tests/test_outputs.py::test_nrmse_accuracy
======================== 1 passed, 1 warning in 32.74s =========================

📊 Final Evaluation Results:
Evaluation Results
==================
nRMSE: 0.251400	Time: 32.12s	Reward: 0.165893	LegacySuccess: False

Continuous reward:
0.165892501659
