sway(probes): register N2 adapter_ablation + lint fix
- SHA
426e0b3627544e45a5c830abc72d367ffcdd4792- Parents
-
e1af82b - Tree
2b19762
426e0b3
426e0b3627544e45a5c830abc72d367ffcdd4792e1af82b
2b19762| Status | File | + | - |
|---|---|---|---|
| M |
src/dlm_sway/probes/__init__.py
|
1 | 0 |
| M |
tests/unit/test_probe_leakage.py
|
2 | 2 |
src/dlm_sway/probes/__init__.pymodified@@ -13,6 +13,7 @@ from __future__ import annotations | ||
| 13 | 13 | # its module. Order is not load-bearing for registration but matches the |
| 14 | 14 | # categorical grouping in :mod:`dlm_sway.core.result`. |
| 15 | 15 | from dlm_sway.probes import ( # noqa: F401 — imports register the probes |
| 16 | + adapter_ablation, | |
| 16 | 17 | adapter_revert, |
| 17 | 18 | calibration_drift, |
| 18 | 19 | delta_kl, |
tests/unit/test_probe_leakage.pymodified@@ -37,9 +37,9 @@ class TestFragility: | ||
| 37 | 37 | assert _fragility(0.0, 0.0) == 0.0 |
| 38 | 38 | |
| 39 | 39 | def test_expected_when_perturbed_dropped(self) -> None: |
| 40 | - import pytest as _pt | |
| 40 | + import pytest | |
| 41 | 41 | |
| 42 | - assert _fragility(0.8, 0.2) == _pt.approx(0.75) | |
| 42 | + assert _fragility(0.8, 0.2) == pytest.approx(0.75) | |
| 43 | 43 | |
| 44 | 44 | |
| 45 | 45 | def _prose_section(sid: str, content: str) -> Section: |