MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / TableModel

Class TableModel

src/ifcbimtester/examples/steps/aggregation.py:138–151  ·  view source on GitHub ↗

This class represents a table of data.

Source from the content-addressed store, hash-verified

136
137
138class TableModel:
139 """This class represents a table of data."""
140
141 def __init__(self):
142 self.rows = dict()
143
144 def add_row(self, related, relating):
145 self.rows[related] = relating
146
147 def get_count(self):
148 return len(self.rows)
149
150 def get_count_distinct_values(self):
151 return len(set(self.rows.values()))

Callers 1

step_implFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected