Skip to content

Commit

Permalink
Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ql-gbrown committed Oct 9, 2024
1 parent b79f46e commit 6a89123
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions spydrnet_physical/util/ConnectionPattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,19 @@ def render_pattern(self, scale=20, title=None, add_module_labels=False):

fpga = ConnectionPattern(5, 5)
left_tree = fpga.connections
left_tree = fpga.get_fishbone(5,5,x_margin=(0, 0))
left_tree.scale(2, anchor=(1, 1))
left_tree.merge(fpga.get_fishbone(5,5,x_margin=(0, 0)))
svg = fpga.render_pattern()
svg.saveas("_test_fishbone.svg", pretty=True, indent=4)

fpga = ConnectionPattern(5, 5)
left_tree = fpga.connections
left_tree.merge(fpga.get_fishbone(5,5,x_margin=(0, 0)))
left_tree.scale(2, anchor=(1, 1))

fpga = ConnectionPattern(10, 10)
conn_list = fpga.connections
conn_list.merge(left_tree)
conn_list.crop_edges()
conn_list.sample_connections()
fpga.render_pattern().save(pretty=True, indent=4)
svg = fpga.render_pattern()
svg.saveas("_test_scale_fishbone.svg", pretty=True, indent=4)

0 comments on commit 6a89123

Please sign in to comment.