Skip to content

[PULL REQUEST] Preparations for 2025 run#254

Merged
GregorSchroeder merged 3 commits into
mainfrom
prepare-for-2025-run
May 29, 2026
Merged

[PULL REQUEST] Preparations for 2025 run#254
GregorSchroeder merged 3 commits into
mainfrom
prepare-for-2025-run

Conversation

@GregorSchroeder
Copy link
Copy Markdown
Contributor

@GregorSchroeder GregorSchroeder commented May 29, 2026

Describe this pull request. What changes are being made?

Updates InputParser to allow for year 2025 to be run in the configuration file.
Adds explicit NA handling to pandas comparison in A/S/E module to avoid RunTimeWarnings.
Updates max_lookback parameter for CA EDD Point dataset queries.

What issues does this pull request address?

closes #251
closes #252
closes #253

Additional context

This is the final preparation commit for an Estimates 2025 run. A release should be cut to make an official run and send to QA once the 2025 Group Quarters layer is ready.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Prepares the codebase for the 2025 Estimates run by extending the allowed configuration year range, suppressing pandas NA comparison warnings in the ASE module, and standardizing max_lookback=2 for EDD point-level fallback queries in the employment module.

Changes:

  • Extend InputParser year bounds to allow 2025 in run.end_year / debug.year.
  • Add explicit notna() guards around min_age/max_age comparisons in _create_ase to avoid pandas RuntimeWarnings.
  • Set max_lookback=2 on EDD point-level fallback queries (get_naics72_split, xref_block_to_mgra); reduce the former from 3 to 2 to match the new convention.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
python/parsers.py Bumps the validated year range upper bound from 2024 to 2025.
python/ase.py Adds explicit NA checks to special-MGRA age restriction comparison to prevent RuntimeWarnings.
python/employment.py Aligns EDD point-level fallback max_lookback to 2 for NAICS-72 split and block-to-MGRA crosswalk queries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GregorSchroeder GregorSchroeder self-assigned this May 29, 2026
@GregorSchroeder GregorSchroeder added bug Something isn't working enhancement New feature or request labels May 29, 2026
@GregorSchroeder GregorSchroeder merged commit c690bd8 into main May 29, 2026
2 checks passed
@GregorSchroeder GregorSchroeder deleted the prepare-for-2025-run branch May 29, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Employment Module Fails in 2025 [FEATURE] Update InputParser to allow 2025 [BUG] Age/Sex/Ethnicity Module RunTimeWarnings

3 participants