text stringclasses 220
values |
|---|
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /verifier |
collecting ... collected 10 items |
../verifier/test_outputs.py::test_public_schema_and_frozen_input_integrity FAILED [ 10%] |
../verifier/test_outputs.py::test_npz_physical_ranges_histograms_and_replicates FAILED [ 20%] |
../verifier/test_outputs.py::test_json_statistics_distances_and_aggregates_recompute FAILED [ 30%] |
../verifier/test_outputs.py::test_equation_probes_independently_recompute FAILED [ 40%] |
../verifier/test_outputs.py::test_microscopic_noise_calibration_independently_recomputes FAILED [ 50%] |
../verifier/test_outputs.py::test_public_finite_time_outcomes FAILED [ 60%] |
../verifier/test_outputs.py::test_submission_isolation_blocks_verifier_reads PASSED [ 70%] |
../verifier/test_outputs.py::test_hidden_unseen_configuration_is_deterministic_and_physical ERROR [ 80%] |
../verifier/test_outputs.py::test_full_array_guard_rejects_distribution_only_surrogates ERROR [ 90%] |
../verifier/test_outputs.py::test_hidden_probes_and_malformed_input_fail_closed ERROR [100%] |
==================================== ERRORS ==================================== |
_ ERROR at setup of test_hidden_unseen_configuration_is_deterministic_and_physical _ |
isolation_root = PosixPath('/tmp/mesoscopic-verifier-1yow8xf0') |
@pytest.fixture(scope="module") |
def hidden_runs( |
isolation_root: Path, |
) -> tuple[ |
dict[str, Any], |
dict[str, np.ndarray], |
Path, |
Path, |
np.ndarray, |
list[dict[str, Any]], |
]: |
HIDDEN_DIR.mkdir(parents=True, exist_ok=True) |
config_path = HIDDEN_DIR / "hidden_config.json" |
config_path.write_text(json.dumps(hidden_config(), indent=2, sort_keys=True) + "\n") |
first_dir = HIDDEN_DIR / "run_a" |
second_dir = HIDDEN_DIR / "run_b" |
for directory in (first_dir, second_dir): |
completed = run_submission(config_path, directory, isolation_root) |
(HIDDEN_DIR / f"{directory.name}.log").write_text(completed.stdout) |
assert completed.returncode == 0, completed.stdout |
for filename in ("sweep_results.json", "samples.npz"): |
artifact = directory / filename |
assert artifact.is_file() and not artifact.is_symlink() |
> first_result, first_arrays = validate_result_and_archive( |
config_path, |
first_dir / "sweep_results.json", |
first_dir / "samples.npz", |
) |
/verifier/test_outputs.py:656: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:179: in validate_result_and_archive |
arrays = load_archive(archive_path) |
^^^^^^^^^^^^^^^^^^^^^^^^^^ |
/verifier/test_outputs.py:88: in load_archive |
return {name: np.array(archive[name], copy=True) for name in archive.files} |
^^^^^^^^^^^^^ |
/usr/local/lib/python3.12/site-packages/numpy/lib/_npyio_impl.py:258: in __getitem__ |
return format.read_array(bytes, |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
fp = <zipfile.ZipExtFile name='model_names.npy' mode='r'>, allow_pickle = False |
pickle_kwargs = {'encoding': 'ASCII', 'fix_imports': True} |
def read_array(fp, allow_pickle=False, pickle_kwargs=None, *, |
max_header_size=_MAX_HEADER_SIZE): |
""" |
Read an array from an NPY file. |
Parameters |
---------- |
fp : file_like object |
If this is not a real file object, then this may take extra memory |
and time. |
allow_pickle : bool, optional |
Whether to allow writing pickled data. Default: False |
.. versionchanged:: 1.16.3 |
Made default False in response to CVE-2019-6446. |
pickle_kwargs : dict |
Additional keyword arguments to pass to pickle.load. These are only |
useful when loading object arrays saved on Python 2 when using |
Python 3. |
max_header_size : int, optional |
Maximum allowed size of the header. Large headers may not be safe |
to load securely and thus require explicitly passing a larger value. |
See :py:func:`ast.literal_eval()` for details. |
This option is ignored when `allow_pickle` is passed. In that case |
the file is by definition trusted and the limit is unnecessary. |
Returns |
------- |
array : ndarray |
The array from the data on disk. |
Raises |
------ |
ValueError |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 64