text
stringclasses
308 values
[0.25, 0.75, 0.0],
],
dtype=np.float64,
)
state_b = state_a @ np.asarray(
[
[1.10, 0.15, 0.0],
[-0.05, 0.90, 0.0],
[0.0, 0.0, 1.0],
],
dtype=np.float64,
).T + np.asarray([2.0, -3.0, 4.0])
assert np.linalg.matrix_rank(state_a - state_a.mean(axis=0)) == 2
pairs = shared_pairs_blockwise(
state_a,
state_b,
RANK_DEFICIENT_RADIUS,
)
assert pairs.shape == (10, 2), "Verifier rank-deficiency fixture must form a complete planar graph"
fixture = public_prefix_fixture(state_a, state_b)
> with staged_submitted_execution(
fixture,
RANK_DEFICIENT_RADIUS,
"rank-deficient",
) as (output_dir, execution, diagnostics):
test_outputs.py:1972:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/lib/python3.11/contextlib.py:137: in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
test_outputs.py:1425: in staged_submitted_execution
assert_regular_file(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
path = PosixPath('/root/analyze_protein_strain.py')
description = 'reusable /root/analyze_protein_strain.py'
def assert_regular_file(path: Path, description: str) -> os.stat_result:
> assert path.exists(), f"Missing {description}: {path}"
E AssertionError: Missing reusable /root/analyze_protein_strain.py: /root/analyze_protein_strain.py
E assert False
E + where False = exists()
E + where exists = PosixPath('/root/analyze_protein_strain.py').exists
test_outputs.py:147: AssertionError
=========================== short test summary info ============================
FAILED ../../app::test_runtime_input_contract_and_output_schema - AssertionEr...
FAILED ../../app::test_public_neighborhood_and_tensors_match_independent_recompute
FAILED ../../app::test_finite_strain_invariants_and_transition_diagnostics - ...
FAILED ../../app::test_csv_and_summary_are_derived_from_submitted_tensors - A...
FAILED ../../app::test_submitted_executable_is_rigid_transform_invariant - As...
FAILED ../../app::test_submitted_executable_handles_hidden_neighborhood_radius
FAILED ../../app::test_submitted_executable_handles_compact_full_rank_transition
FAILED ../../app::test_public_shape_and_key_special_case_is_rejected - FileNo...
FAILED ../../app::test_submitted_executable_rejects_rank_deficient_input - As...
============================== 9 failed in 1.20s ===============================
============================= test session starts ==============================
platform linux -- Python 3.11.14, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3
rootdir: /app
configfile: ../dev/null
plugins: json-ctrf-0.3.5
collecting ... collected 9 items
../../app::test_runtime_input_contract_and_output_schema PASSED [ 11%]
../../app::test_public_neighborhood_and_tensors_match_independent_recompute PASSED [ 22%]
../../app::test_finite_strain_invariants_and_transition_diagnostics PASSED [ 33%]
../../app::test_csv_and_summary_are_derived_from_submitted_tensors FAILED [ 44%]
../../app::test_submitted_executable_is_rigid_transform_invariant FAILED [ 55%]
../../app::test_submitted_executable_handles_hidden_neighborhood_radius FAILED [ 66%]
../../app::test_submitted_executable_handles_compact_full_rank_transition FAILED [ 77%]
../../app::test_public_shape_and_key_special_case_is_rejected PASSED [ 88%]
../../app::test_submitted_executable_rejects_rank_deficient_input PASSED [100%]
=================================== FAILURES ===================================
___________ test_csv_and_summary_are_derived_from_submitted_tensors ____________
def test_csv_and_summary_are_derived_from_submitted_tensors() -> None:
data = input_data()
artifacts = load_artifacts(ROOT)
validate_csv_and_summary_against_input(
artifacts,
data,
PUBLIC_RADIUS,
)
> validate_nonaffine_summary_against_input(
artifacts,
data,
public_nonaffine_reference(),
)
test_outputs.py:1774:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
artifacts = {'arrays': {'compression': array([0.68757631, 0.71798022, 0.70042896, ..., 0.57020443, 0.52854174,
0.02429242])... 0.8885252214093184, 'input_schema_version': 'neutral-protein-transition-v1', 'maximum_neighbor_count': 165, ...}, ...}
fixture = {'residue_key': array(['S000-R00001', 'S000-R00002', 'S000-R00003', ..., 'S025-R00141',
'S025-R00142', 'S025-R0...S025', 'S025', 'S025'], dtype='<U4'), 'segment_position': array([ 1, 2, 3, ..., 141, 142, 143], dtype=int32), ...}