MCPcopy Create free account
hub / github.com/NanoComp/meep / print

Method print

python/simulation.py:6414–6418  ·  view source on GitHub ↗

Pretty-prints the tree structure of the BinaryPartition object.

(self)

Source from the content-addressed store, hash-verified

6412 self.proc_id = proc_id
6413
6414 def print(self):
6415 """Pretty-prints the tree structure of the BinaryPartition object."""
6416 print(str(self) + f" with {self.numchunks()} chunks:")
6417 for line in self._print(is_root=True):
6418 print(line)
6419
6420 def _print(self, prefix="", is_root=True):
6421 # pointers

Callers

nothing calls this directly

Calls 2

numchunksMethod · 0.95
_printMethod · 0.95

Tested by

no test coverage detected