Skip to content

fix: allow omitting PDF page ranges#76

Open
DeoJin wants to merge 1 commit intodatalab-to:masterfrom
DeoJin:fix/load-pdf-images-default-page-range
Open

fix: allow omitting PDF page ranges#76
DeoJin wants to merge 1 commit intodatalab-to:masterfrom
DeoJin:fix/load-pdf-images-default-page-range

Conversation

@DeoJin
Copy link
Copy Markdown

@DeoJin DeoJin commented Mar 19, 2026

Summary

  • allow load_pdf_images() to be called without explicitly passing a page range
  • document the correct Python API flow using BatchInputItem in the README
  • add focused tests covering the default and filtered page-range behavior

Closes #66.

Validation

  • uv run --no-dev pytest tests/unit/test_input.py
  • uv run --no-dev python -c "from chandra.input import load_pdf_images; from chandra.model import BatchInputItem; import inspect; sig = inspect.signature(load_pdf_images); assert sig.parameters['page_range'].default is None; item = BatchInputItem(image=None, prompt_type='ocr_layout'); print('ok')"

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.

Problem with Quick Start Python

1 participant