Skip to content

Fix _extract_evaluation_year() to use END_INVYR from POP_EVAL#81

Merged
mihiarc merged 1 commit intomainfrom
fix/extract-evaluation-year-evalid-parsing
Mar 14, 2026
Merged

Fix _extract_evaluation_year() to use END_INVYR from POP_EVAL#81
mihiarc merged 1 commit intomainfrom
fix/extract-evaluation-year-evalid-parsing

Conversation

@mihiarc
Copy link
Copy Markdown
Owner

@mihiarc mihiarc commented Mar 14, 2026

Summary

Test plan

  • 720 unit tests pass (9 removed with dead EVALIDYearParsing class)
  • Volume and GRM validation tests: exact EVALIDator matches
  • ruff + mypy clean

Closes #80

The method parsed EVALID strings with fixed-position slicing (SSYYTT),
which fails for single-digit FIPS codes and referenced a nonexistent
self.db.evalids attribute (the correct attribute is self.db.evalid),
making the entire EVALID parsing block dead code.

Replace with END_INVYR lookup from POP_EVAL filtered by the current
EVALID. Remove the now-unused EVALIDYearParsing constants class and
its tests.

Closes #80
@mihiarc mihiarc merged commit 5946e98 into main Mar 14, 2026
3 checks passed
@mihiarc mihiarc deleted the fix/extract-evaluation-year-evalid-parsing branch March 14, 2026 14:48
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.

_extract_evaluation_year() has same EVALID parsing bug for single-digit FIPS codes

1 participant