forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading from disk #78
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
analyze_single_patentconstructs a pathpatents/{patent_id}.pdfand reads from disk, but does not download the PDF first if it is missing. Calling this method without a pre-existing file silently fails or raises an unhandled exception.Work
analyze_single_patent.Acceptance Criteria
analyze_single_patentwithout a pre-downloaded PDF either downloads it automatically or returns a clear, actionable error.References
Roadmap: Backend —
analyze_single_patentassumes local file path.Resolved.
analyze_single_patentnow downloads the PDF before attempting to read it from disk. Implemented in PR #55 (merged). SeeSPARC/analyzer.py.