ifcopenshell.geom.stats

Module Contents

class ifcopenshell.geom.stats.BooleanResultCounter(exclude_union=True)
count(decl, values)
print(out=sys.stdout)
exclude_union = True
total = 0
class ifcopenshell.geom.stats.ProductCounter(only_with_representation=True)
count(decl, values)
print(out=sys.stdout)
counts
counts_excl
only_with_representation = True
total = 0
class ifcopenshell.geom.stats.StatsCollector
feed(data: str)
feedFromFile(f: IO[str] | None = None)
static fromFilePath(fn, page_size: int = 102400)
includeElementTypesBasedOnBudget(priorities: dict, budget)
next()
print(out=sys.stdout)
process()
counters: list
file_stream: IO[str] | None
finalized: bool = False
needs_data: bool = False
num_semis: int = 0
page_size: int | None
streamer: ifcopenshell.geom.ifcopenshell_wrapper.InstanceStreamer
class ifcopenshell.geom.stats.TransformDefaultDict(keyfunc=lambda x: ..., default_factory=None)

Similar to collections.defaultdict, but allows for storing non-hashable keys by means of a transform function

clear()
get(key, default=None)
items()
keys()
setdefault(key, default=None)
update(other)
values()
default_factory = None
keyfunc
ifcopenshell.geom.stats.collector