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

Class PartOfResult

src/ifctester/ifctester/facet.py:1138–1147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136
1137
1138class PartOfResult(Result):
1139 def to_string(self):
1140 if self.reason["type"] == "NOVALUE":
1141 return "The entity has no relationship"
1142 elif self.reason["type"] == "ENTITY":
1143 return f"The entity has a relationship with incorrect entities: \"{str(self.reason['actual'])}\""
1144 elif self.reason["type"] == "PREDEFINEDTYPE":
1145 return f"The entity has a relationship with incorrect predefined type: \"{str(self.reason['actual'])}\""
1146 elif self.reason["type"] == "PROHIBITED":
1147 return "The relationship should not have met the requirement"
1148
1149
1150class PropertyResult(Result):

Callers 1

__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected