MCPcopy Create free account
hub / github.com/PyTables/PyTables / open_db

Method open_db

bench/lookup_bench.py:74–78  ·  view source on GitHub ↗
(self, remove=0)

Source from the content-addressed store, hash-verified

72 print(f"Array size (MB): {array_size:.3f}")
73
74 def open_db(self, remove=0):
75 if remove and Path(self.filename).is_file():
76 Path(self.filename).unlink()
77 con = tb.open_file(self.filename, "a")
78 return con
79
80 def create_db(self, verbose):
81 self.con = self.open_db(remove=1)

Callers 4

create_dbMethod · 0.95
query_dbMethod · 0.95
create_dbMethod · 0.95
query_dbMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected