mirror of
https://github.com/wassname/moral-maps.git
synced 2026-09-25 13:50:17 +08:00
Whole-library review (deepseek-v4-pro) flagged tinymfv as not-yet-ready as a shared dep. Fixes for the parts I agreed with: - lazy `maps` import via module __getattr__ so `import tinymfv` stays headless/fast (no forced matplotlib) for numeric-only consumers; `tinymfv.maps.*` still works. - trim __all__ to the front door (entrypoints + types + data api); plumbing stays importable but out of `import *`. - delete dead code: reduce_nominal + REDUCERS (evaluate folds its profile inline), expected_value, HF_REPO, ROOT, _DEFAULT_FORCED_HINT. - type administer's return as a TypedDict (AdministerResult/ItemRow/ItemFrameRow) so the schema is documented + checkable without reading source; still a plain dict at runtime (zero consumer churn). - maps.plot_ipsative_pca: parametrize the legend labels (defaults preserve output) and rename hon/dis -> pos/neg so a non-honesty steer gets a correct legend. - drop 'canary' jargon and panel/review-# archaeology from comments. Verified: `import tinymfv` no longer loads matplotlib; lazy maps still resolves; experiment mfq2 smoke green through the typed administer. Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>