Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pretty-printing to meep.BinaryPartition (NanoComp#1665)
This commit adds pretty-print functionality to the BinaryPartition class, which can be useful for inspecting the structure of the tree and debugging. Example: >> chunk_layout.print() <__main__.BinaryPartition object at 0x7f6eb5ed78d0> with 5 chunks: <split_dir=X, split_pos=-2.0> ├L─ <proc_id=0> └R─ <split_dir=Y, split_pos=1.5> ├L─ <split_dir=X, split_pos=3.0> │ ├L─ <proc_id=1> │ └R─ <split_dir=Y, split_pos=-0.5> │ ├L─ <proc_id=4> │ └R─ <proc_id=3> └R─ <proc_id=2>
- Loading branch information