MCPcopy Create free account
hub / github.com/clips/pattern / IndexAssigner

Class IndexAssigner

pattern/web/pdf/layout.py:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7## IndexAssigner
8##
9class IndexAssigner(object):
10
11 def __init__(self, index=0):
12 self.index = index
13 return
14
15 def run(self, obj):
16 if isinstance(obj, LTTextBox):
17 obj.index = self.index
18 self.index += 1
19 elif isinstance(obj, LTTextGroup):
20 for x in obj:
21 self.run(x)
22 return
23
24
25## LAParams

Callers 1

analyzeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…