You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test coverage gaps: AMICA.save/load and plot_components #15
AMICA.save/AMICA.load (pyAMICA/amica.py:244-297) do a real torch.save/load state_dict roundtrip but have zero test coverage. The old AMICATorch.save/load test was deleted (those methods no longer exist); coverage moved to the wrapper and was never re-added.
amica_viz.plot_components (pyAMICA/amica_viz.py:84) has a current signature (results_dir, data=None, ...) -> None and is fully untested since the stale test_visualization was deleted.
Add real (non-mock) tests: save/load a fitted model to tmp_path and assert roundtrip equality of W/A; render plot_components from a real saved results directory and assert files are written.
The save/load half of this issue is now covered by #44 (merged): real fit -> save -> load -> transform round-trip plus unfitted/degenerate/non-finite/snapshot guard tests (test_amica_ng_wrapper.py, test_ng_backend.py::test_state_dict_*).
Remaining under this issue: amica_viz.plot_components test coverage. Keeping open for that.
Done via #65 (and #36). AMICA.save/load roundtrip is covered by test_amica_ng_wrapper.py (save-requires-fit, save/load roundtrip asserting W/A equality, version guard, missing-key guard, degenerate-refusal) added under #36. plot_components builds an in-memory figure and never writes a file, so the 'assert files are written' premise does not apply; #65 covers its previously-untested activation branch (data provided) instead. amica.py coverage 86% -> 96%.
Activity
Remove superseded torch backends (#32)
Address PR #35 review findings
Write CLI results in Fortran binary format (#30)
Implement save/load persistence for NG backend
Implement save/load persistence for AMICATorchNG (#44)
neuromechanist commentedon Jul 6, 2026
The save/load half of this issue is now covered by #44 (merged): real fit -> save -> load -> transform round-trip plus unfitted/degenerate/non-finite/snapshot guard tests (
test_amica_ng_wrapper.py,test_ng_backend.py::test_state_dict_*).Remaining under this issue:
amica_viz.plot_componentstest coverage. Keeping open for that.test: harden edge cases + utils coverage (#61, #15)
test: hardening + branch coverage in CI (#65)
neuromechanist commentedon Jul 7, 2026
Done via #65 (and #36). AMICA.save/load roundtrip is covered by test_amica_ng_wrapper.py (save-requires-fit, save/load roundtrip asserting W/A equality, version guard, missing-key guard, degenerate-refusal) added under #36. plot_components builds an in-memory figure and never writes a file, so the 'assert files are written' premise does not apply; #65 covers its previously-untested activation branch (data provided) instead. amica.py coverage 86% -> 96%.
Epic polish: audit fixes (#316)
Bring the context plan and progress summary up to date
Phase 16: audit the documentation against the epic (#353)