From eee5f05f3ff98e04f779a5c7840dfb165e31d266 Mon Sep 17 00:00:00 2001 From: christinestraub Date: Fri, 12 Jul 2024 11:31:16 -0700 Subject: [PATCH] exp: log element coordinates --- test_unstructured/partition/test_auto.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_unstructured/partition/test_auto.py b/test_unstructured/partition/test_auto.py index c494387b52..d98574c17f 100644 --- a/test_unstructured/partition/test_auto.py +++ b/test_unstructured/partition/test_auto.py @@ -533,7 +533,10 @@ def test_auto_partition_pdf_from_filename(pass_metadata_filename: bool, content_ print("[") for e in elements[:10]: - print(f"{e.metadata.detection_origin}-{type(e).__name__}({repr(e.text)}),") + detection_origin = e.metadata.detection_origin + x1, y1 = e.metadata.coordinates.points[0] + x2, y2 = e.metadata.coordinates.points[2] + print(f"{detection_origin}-({x1, y1, x2, y2})-{type(e).__name__}({repr(e.text)}),") print("]") pytest.fail("WIP Inspection")