Skip to content

Map Arch sex constraints for target facts#39

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/arch-sex-constraint
May 28, 2026
Merged

Map Arch sex constraints for target facts#39
MaxGhenis merged 1 commit into
mainfrom
codex/arch-sex-constraint

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Summary

  • map Arch sex constraints to Microplex is_female filters for both consumer JSONL and SQLite fact providers
  • support female/male string values and ACS-style numeric sex codes
  • add coverage for ACS state age-sex person-count targets

Validation

  • uv run --python 3.13 --extra dev ruff check src/microplex_us/targets/arch.py tests/targets/test_arch_facts.py
  • uv run --python 3.13 --extra dev pytest -q tests/targets/test_arch_facts.py::test_arch_consumer_fact_jsonl_provider_maps_acs_state_age_sex_rows
  • generated B01001 Arch consumer facts from /tmp/arch-census-b01001-female-age-2023/consumer_facts.jsonl load into 468 Microplex person_count targets with is_female == 1 filters

@MaxGhenis MaxGhenis merged commit d31ce86 into main May 28, 2026
3 checks passed
@MaxGhenis MaxGhenis deleted the codex/arch-sex-constraint branch May 28, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant