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

Method __init__

test/run.py:58–63  ·  view source on GitHub ↗
(self,fn,store_as=None)

Source from the content-addressed store, hash-verified

56# Class to download extract and convert IFC files
57class TestFile:
58 def __init__(self,fn,store_as=None):
59 global test_cases
60 self.fn = fn
61 self.store_as = store_as
62 self.failed = []
63 test_cases.append(self)
64 def __call__(self):
65 if self.fn.startswith("http://") or self.fn.startswith("ftp://"):
66 fn = self.store_as if self.store_as else self.fn.split("/")[-1]

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected