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

Method _numchunks

python/simulation.py:6446–6449  ·  view source on GitHub ↗
(self, bp)

Source from the content-addressed store, hash-verified

6444 return f"<split_dir={split_dir_str}, split_pos={self.split_pos}>"
6445
6446 def _numchunks(self, bp):
6447 if bp is None:
6448 return 0
6449 return max(self._numchunks(bp.left) + self._numchunks(bp.right), 1)
6450
6451 def numchunks(self):
6452 return self._numchunks(self)

Callers 1

numchunksMethod · 0.95

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected