Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def debug_tablefinder(self, tf={}):
if isinstance(tf, TableFinder):
pass
elif isinstance(tf, dict):
tf = self.page.debug_tablefinder(tf)
else:
raise ValueError("Argument must be instance of TableFinder or a TableFinder settings dict.")
for table in tf.tables:
self.debug_table(table)
self.draw_lines(tf.edges, stroke_width=1)
self.draw_circles(tf.intersections.keys(),
fill=COLORS.TRANSPARENT,
stroke=COLORS.BLUE + (200,),
radius=3)
return self
def find_tables(self, table_settings={}):
return TableFinder(self, table_settings).tables
def debug_tablefinder(self, table_settings={}):
return TableFinder(self, table_settings)