-
Notifications
You must be signed in to change notification settings - Fork 523
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In the docs and CLI, the default line_scale is 40.
In the API, when omitting a line_scale, it defaults to 15.
Steps to reproduce the bug
python -m pip install camelot-py
camelot --output out.csv lattice document.pdfoutput (table count)
differs to
import camelot
camelot.read_pdf("document.pdf")depending on pdf lines
Expected behavior
Output should be consistent. This is made more confusing, as the CLI:
Line 135 in 6b7b67d
| default=40, |
uses the default listed in the docs:
Line 73 in 6b7b67d
| line_scale* : int, optional (default: 40) |
but not the actual implementation:
camelot/camelot/parsers/lattice.py
Line 37 in 6b7b67d
| line_scale : int, optional (default: 15) |
I can't provide a concrete example as the pdf I'm testing is sensitive.
Environment
- OS: macOS 15.6.1
- Python version: 3.13.5
- Numpy version: 2.2.6
- OpenCV version: 4.12.0.88
- Ghostscript version: N/A
- camelot version: 1.0.9
Additional context
I'm new to this project, so not sure which way the default is intended to be, otherwise I would open a PR to fix the incorrect default.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working