Skip to content

fix: import gen_batch and write under the repo tree - #1

Open
Chessing234 wants to merge 3 commits into
teorth:masterfrom
Chessing234:fix/gen-all-batches-import
Open

Chessing234 wants to merge 3 commits into
teorth:masterfrom
Chessing234:fix/gen-all-batches-import

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • scripts/gen_all_batches.py imported nonexistent mk_batch (ModuleNotFoundError)
  • Output path was hardcoded to a machine-local Windows directory
  • Import gen_batch and write under Sendov/FiniteRange relative to the repo root

Test plan

  • ls scripts/ has gen_batch.py, no mk_batch.py
  • gen_batch.build exists
  • Full batch generation not run here (heavy sympy)

Made with Cursor

gen_all_batches imported a nonexistent mk_batch module and hardcoded a
machine-local Windows path, so the regenerator could not run.
@Chessing234

Copy link
Copy Markdown
Author

could someone with write access approve the lean action ci run on this fork pr? it's stuck on action_required.

Same hardcoded Windows path bug as gen_all_batches: generate into
Sendov/... relative to the script instead of c:/Users/teort/...
@Chessing234

Copy link
Copy Markdown
Author

also fixed the same hardcoded path in gen_cover/gen_endgame/gen_sinh.

PR tip put `from pathlib import Path` inside Lean templates for Endgame
and Sinh, and still ran emit_batch cwd-relative. Move Path to the Python
module scope, resolve sinh_tail beside the script, and invoke emit_batch
via SCRIPTS paths.
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