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

Method __call__

tables/link.py:234–249  ·  view source on GitHub ↗

Dereference `self.target` and return the object. Examples -------- :: >>> f = tb.open_file('tables/tests/slink.h5') >>> f.root.arr2 /arr2 (SoftLink) -> /arr >>> print(f.root.arr2()) /arr (Array(2,)) ''

(self)

Source from the content-addressed store, hash-verified

232 _link_attrprefixes = ("_f_", "_c_", "_g_", "_v_")
233
234 def __call__(self) -> Node | None:
235 """Dereference `self.target` and return the object.
236
237 Examples
238 --------
239 ::
240
241 >>> f = tb.open_file('tables/tests/slink.h5')
242 >>> f.root.arr2
243 /arr2 (SoftLink) -> /arr
244 >>> print(f.root.arr2())
245 /arr (Array(2,)) ''
246 >>> f.close()
247
248 """
249 return self.dereference()
250
251 def dereference(self) -> Node | None:
252 """Dereference a link."""

Callers

nothing calls this directly

Calls 1

dereferenceMethod · 0.95

Tested by

no test coverage detected