Skip to content

Commit

Permalink
Of course I mean n_boards...
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Sep 26, 2023
1 parent e14cc3b commit e3bba49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions link_test/link_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from link_test.link_test_vertex import LinkTestVertex, PARTITION_NAME


def run(n_chips=None):
def run(n_boards=None):
front_end.setup(model_binary_folder=os.path.dirname(__file__),
n_chips_required=n_chips)
n_boards_required=n_boards)

machine = front_end.machine()

Expand Down Expand Up @@ -51,7 +51,7 @@ def run(n_chips=None):


if __name__ == "__main__":
n_chips = None
n_boards_req = None
if len(sys.argv) > 1:
n_chips = int(sys.argv[1])
run(n_chips)
n_boards_req = int(sys.argv[1])
run(n_boards_req)
12 changes: 6 additions & 6 deletions link_test/run_link_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

class LinkTest(object):

def do_run(self, n_chips=None):
run(n_chips)
def do_run(self, n_boards=None):
run(n_boards)


boards = [(b_x, b_y) for b_x in range(0, 20, 2) for b_y in range(0, 20, 2)]
Expand Down Expand Up @@ -88,16 +88,16 @@ def test_run(x, y):
f.write("read_profile_data = False\n")

test = LinkTest()
test.do_run(12)
test.do_run(WIDTH * HEIGHT * 3)

# If no errors we will get here and we can remove the tree;
# then only error folders will be left
rmtree(tmpdir)


if __name__ == "__main__":
n_chips = None
n_boards_req = None
if len(sys.argv) > 1:
n_chips = int(sys.argv[1])
n_boards_req = int(sys.argv[1])
link_test = LinkTest()
link_test.do_run(n_chips)
link_test.do_run(n_boards_req)

0 comments on commit e3bba49

Please sign in to comment.