From 1287abeeaf5736835fb700f4c67186634b149219 Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Sun, 6 Dec 2020 05:50:26 +0530 Subject: [PATCH] Remove test --- camelot/parsers/lattice.py | 3 +-- test.py | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 test.py diff --git a/camelot/parsers/lattice.py b/camelot/parsers/lattice.py index 3f2c0e9..5469fac 100644 --- a/camelot/parsers/lattice.py +++ b/camelot/parsers/lattice.py @@ -211,7 +211,7 @@ class Lattice(BaseParser): from ..ext.ghostscript import Ghostscript self.imagename = "".join([self.rootname, ".png"]) - gs_call = "-q -sDEVICE=png16m -o {} -r900 {}".format( + gs_call = "-q -sDEVICE=png16m -o {} -r300 {}".format( self.imagename, self.filename ) gs_call = gs_call.encode().split() @@ -329,7 +329,6 @@ class Lattice(BaseParser): table = Table(cols, rows) # set table edges to True using ver+hor lines - table = table.set_edges(v_s, h_s, joint_tol=self.joint_tol) # set table border edges to True table = table.set_border() diff --git a/test.py b/test.py deleted file mode 100644 index fcfdc37..0000000 --- a/test.py +++ /dev/null @@ -1,9 +0,0 @@ -import camelot - - -tables = camelot.read_pdf("tests/files/foo_image.pdf", flavor="lattice_ocr") -print(tables[0].df) - -# camelot.plot(tables[0], kind="contour").show() -# camelot.plot(tables[0], kind="grid").show() -