Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Add table bbox attribute (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayak-mehta authored Nov 3, 2018
1 parent a60ce38 commit defaead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions camelot/parsers/lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ def extract_tables(self, filename):
self.table_bbox.keys(), key=lambda x: x[1], reverse=True)):
cols, rows, v_s, h_s = self._generate_columns_and_rows(table_idx, tk)
table = self._generate_table(table_idx, cols, rows, v_s=v_s, h_s=h_s)
table._bbox = tk
_tables.append(table)

return _tables
1 change: 1 addition & 0 deletions camelot/parsers/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ def extract_tables(self, filename):
self.table_bbox.keys(), key=lambda x: x[1], reverse=True)):
cols, rows = self._generate_columns_and_rows(table_idx, tk)
table = self._generate_table(table_idx, cols, rows)
table._bbox = tk
_tables.append(table)

return _tables

0 comments on commit defaead

Please sign in to comment.