Skip to content

Commit

Permalink
fix: fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
badGarnet committed Jan 22, 2025
1 parent 083c04e commit a179328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unstructured/partition/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ def document_to_element_list(
if (
image_width
and image_height
and getattr(layout_element.bbox, "x1") is not (None, np.nan)
and getattr(layout_element.bbox, "x1") not in (None, np.nan)
):
coordinate_system = PixelSpace(width=image_width, height=image_height)
else:
Expand Down

0 comments on commit a179328

Please sign in to comment.