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

Function val

src/ifcfm/ifcfm/cobie24.py:1020–1022  ·  view source on GitHub ↗

Replace n/a and empty strings with `None`.

(x: Any)

Source from the content-addressed store, hash-verified

1018
1019
1020def val(x: Any) -> Any:
1021 """Replace n/a and empty strings with `None`."""
1022 return x if x not in ("", "n/a") else None
1023
1024
1025def get_area_measurement(element: ifcopenshell.entity_instance) -> Union[str, None]:

Callers 15

get_zonesFunction · 0.70
get_attributesFunction · 0.70
get_facility_dataFunction · 0.70
get_floor_dataFunction · 0.70
get_space_dataFunction · 0.70
get_zone_dataFunction · 0.70
get_type_dataFunction · 0.70
get_component_dataFunction · 0.70
get_system_dataFunction · 0.70
get_assembly_dataFunction · 0.70
get_connection_dataFunction · 0.70
get_spare_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected