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

Method get_precision

src/ifcdiff/ifcdiff.py:275–279  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

273 )
274
275 def get_precision(self) -> float:
276 contexts = [c for c in self.new.by_type("IfcGeometricRepresentationContext") if c.ContextType == "Model"]
277 if contexts:
278 return contexts[0].Precision or 1e-4
279 return 1e-4
280
281 def diff_element(self, old, new):
282 diff = DeepDiff(

Callers 1

diffMethod · 0.95

Calls 1

by_typeMethod · 0.45

Tested by

no test coverage detected