forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading from disk #125
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The analyze_single_patent method constructs a local path patents/{patent_id}.pdf and reads from disk, but does not download the PDF first. This causes a FileNotFoundError unless the caller has already downloaded the file out-of-band.
Work
Acceptance Criteria
References
Roadmap: P2 -- Backend -- analyze_single_patent assumes local file path.
This issue has already been resolved.
analyze_single_patentinSPARC/analyzer.pynow downloads the PDF before reading from disk (see line 137: auto-download when PDF is not on disk).Resolved by PR #55 ("fix: auto-download patent PDF in analyze_single_patent"). Closing.