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

Function _coerce_entity_list

src/ifcedit/ifcedit/coerce.py:145–148  ·  view source on GitHub ↗

Resolve a comma-separated list of step IDs to entity instances.

(value_str: str, lookup_file: ifcopenshell.file | None)

Source from the content-addressed store, hash-verified

143
144
145def _coerce_entity_list(value_str: str, lookup_file: ifcopenshell.file | None) -> list[ifcopenshell.entity_instance]:
146 """Resolve a comma-separated list of step IDs to entity instances."""
147 items = _split_list(value_str)
148 return [_coerce_entity(item.strip(), lookup_file) for item in items]
149
150
151def _floatify_numeric_lists(obj):

Callers 1

coerce_valueFunction · 0.85

Calls 2

_split_listFunction · 0.85
_coerce_entityFunction · 0.85

Tested by

no test coverage detected