test_padis_reconstruction_driver.pyΒΆ
Source: tests/experiments/test_padis_reconstruction_driver.py
Test padis reconstruction driver behaviour.
- class IdentityOp
Provide the identity op test double used by this module.
- IdentityOp.domain_shape(self)
Handle domain shape for the PaDIS workflow.
- IdentityOp.range_shape(self)
Handle range shape for the PaDIS workflow.
- IdentityOp.forward(self, x)
Apply the forward operation to the requested values.
- IdentityOp.adjoint(self, y)
Handle adjoint for the PaDIS workflow.
- IdentityOp.inverse(self, y)
Handle inverse for the PaDIS workflow.
- class TinyDataset
Provide the tiny dataset test double used by this module.
- test_baseline_driver_writes_metrics_and_tensors(tmp_path)
Verify that baseline driver writes metrics and tensors.
- test_result_display_label_distinguishes_patch_and_whole_image_sampling()
Verify that result display label distinguishes patch and whole image sampling.
- test_admm_tv_driver_uses_lion_tv_path(monkeypatch, tmp_path)
Verify that admm tv driver uses lion tv path.
- test_pnp_admm_driver_uses_lion_pnp_path(monkeypatch, tmp_path)
Verify that pnp admm driver uses lion pnp path.
- test_driver_can_record_ddnm_pseudoinverse_diagnostics(tmp_path)
Verify that driver can record ddnm pseudoinverse diagnostics.
- test_sampler_payload_records_effective_lipschitz_scaling()
Verify that sampler payload records effective lipschitz scaling.
- test_sampler_payload_falls_back_to_matching_device_type_cache_entry()
Verify that sampler payload falls back to matching device type cache entry.
- test_reconstruction_cli_validation_rejects_public_repo_for_methods_without_public_analogue()
Verify that reconstruction cli validation rejects public repo for methods without public analogue.
- test_public_repo_helper_initialization_is_opt_in_for_helper_methods()
Verify that public repo helper initialization is opt in for helper methods.
- test_lion_physics_method_specific_sampler_defaults_are_applied()
Verify that lion physics method specific sampler defaults are applied.
- test_checkpoint_metadata_fallback_infers_whole_image_preset(tmp_path)
Verify that checkpoint metadata fallback infers whole image preset.
- test_checkpoint_sidecar_restores_model_parameter_type(tmp_path)
Verify that checkpoint sidecar restores model parameter type.
- test_checkpoint_metadata_fallback_infers_patch_ablation_without_position(tmp_path)
Verify that checkpoint metadata fallback infers patch ablation without position.