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

Method to_file

src/ifctester/ifctester/reporter.py:542–547  ·  view source on GitHub ↗
(self, filepath: str)

Source from the content-addressed store, hash-verified

540 return pystache.render(file.read(), self.results)
541
542 def to_file(self, filepath: str) -> None:
543 import pystache
544
545 with open(os.path.join(cwd, "templates", "report.html"), "r") as file:
546 with open(filepath, "w", encoding="utf-8") as outfile:
547 return outfile.write(pystache.render(file.read(), self.results))
548
549
550class Ods(Json):

Callers

nothing calls this directly

Calls 4

openFunction · 0.70
joinMethod · 0.45
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected