From a179328c48ae870eb632ec7ce54fbc90434ce8a2 Mon Sep 17 00:00:00 2001 From: Yao You Date: Wed, 22 Jan 2025 10:25:17 -0600 Subject: [PATCH] fix: fix logic --- unstructured/partition/pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unstructured/partition/pdf.py b/unstructured/partition/pdf.py index 39efe1a912..4d08075b65 100644 --- a/unstructured/partition/pdf.py +++ b/unstructured/partition/pdf.py @@ -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: