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

Class ClassificationResult

src/ifctester/ifctester/facet.py:1126–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1124
1125
1126class ClassificationResult(Result):
1127 def to_string(self):
1128 if self.reason["type"] == "NOVALUE":
1129 return "The entity has no classification"
1130 elif self.reason["type"] == "VALUE":
1131 return f"The references \"{str(self.reason['actual'])}\" do not match the requirements"
1132 elif self.reason["type"] == "SYSTEM":
1133 return f"The systems \"{str(self.reason['actual'])}\" do not match the requirements"
1134 elif self.reason["type"] == "PROHIBITED":
1135 return "The classification should not have met the requirement"
1136
1137
1138class PartOfResult(Result):

Callers 1

__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected