Skip to content

fix: add src/evalml/leadtimes.py, missing from #272 - #291

Closed
Louis-Frey wants to merge 1 commit into
mainfrom
user/lfrey/fix-missing-leadtimes-module
Closed

Louis-Frey wants to merge 1 commit into
mainfrom
user/lfrey/fix-missing-leadtimes-module

Conversation

@Louis-Frey

Copy link
Copy Markdown
Contributor

#272 moved resolve_leadtimes and PARAMS_WITHOUT_STEP_ZERO_VALUE out of workflow/rules/common.smk and imports them with from evalml.leadtimes import resolve_leadtimes, but src/evalml/leadtimes.py was not part of the commit. Since then every workflow on main fails at startup:

ModuleNotFoundError in file ".../workflow/rules/common.smk", line 11:
No module named 'evalml.leadtimes'

This PR adds the module with exactly the code #272 removed from common.smk (taken from 36da75b, the parent of #272), plus the logging and re imports it needs.

If you have the original file locally, feel free to push it instead and close this PR.

Checks:

  • evalml experiment config/forecasters-ich1-oper.yaml -- --dry-run plans 25 jobs with the fix and fails with the error above without it.
  • pytest tests/unit: 289 passed.
  • ruff check and ruff format --check pass.

#272 moved resolve_leadtimes (and PARAMS_WITHOUT_STEP_ZERO_VALUE) out of
workflow/rules/common.smk and imports them from evalml.leadtimes, but the
module was not committed. Every workflow now fails at startup with
ModuleNotFoundError. Restore it with the code removed from common.smk
in #272.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Louis-Frey
Louis-Frey requested a review from dnerini November 11, 2026 17:16
@Louis-Frey Louis-Frey closed this Nov 12, 2026
@Louis-Frey
Louis-Frey deleted the user/lfrey/fix-missing-leadtimes-module branch November 12, 2026 09:11
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