Skip to content

Commit

Permalink
exp: log element coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
christinestraub committed Jul 12, 2024
1 parent 19b88ce commit eee5f05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_unstructured/partition/test_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit eee5f05

Please sign in to comment.