Commit ebba46427c78c2ac88a8bb3b6dbb40073812dfeb

Authored by Brice Colombier
1 parent abd1d15d38
Exists in master

CASCADE working with: 1 pass, no backtracking

Showing 2 changed files with 40 additions and 1 deletions

boards_management/get_response.py View file @ ebba464
... ... @@ -21,7 +21,15 @@
21 21 tclsh.eval(board_manager.reset_boards())
22 22 tclsh.eval(board_manager.generate_response())
23 23 response = tclsh.eval(board_manager.offload_response())
24   - return response
  24 + print response
  25 + response = tclsh.eval(board_manager.offload_response())
  26 + print response
  27 + response = tclsh.eval(board_manager.offload_response())
  28 + print response
  29 + response = tclsh.eval(board_manager.offload_response())
  30 + print response
  31 + response = tclsh.eval(board_manager.offload_response())
  32 + print response
25 33  
26 34  
27 35 if __name__ == "__main__":
boards_management/test_scenario.py View file @ ebba464
  1 +from Tkinter import *
  2 +import board_commands
  3 +
  4 +tclsh = Tcl()
  5 +board_manager = board_commands.Board_manager()
  6 +
  7 +tclsh.eval(board_manager.source_tcl_package())
  8 +tclsh.eval(board_manager.connect("COM5"))
  9 +tclsh.eval(board_manager.reset_boards())
  10 +tclsh.eval(board_manager.generate_response())
  11 +print tclsh.eval(board_manager.offload_response())
  12 +print tclsh.eval(board_manager.command_get_parities_from_indices([list(range(0, 4))]))
  13 +print tclsh.eval(board_manager.command_get_parities_from_indices([list(range(4, 8))]))
  14 +print tclsh.eval(board_manager.command_get_parities_from_indices([list(range(8, 12))]))
  15 +print tclsh.eval(board_manager.command_get_parities_from_indices([list(range(12, 16))]))
  16 +print tclsh.eval(board_manager.offload_response())
  17 +tclsh.eval(board_manager.generate_response())
  18 +print tclsh.eval(board_manager.offload_response())
  19 +tclsh.eval(board_manager.reset_boards())
  20 +tclsh.eval(board_manager.generate_response())
  21 +print tclsh.eval(board_manager.offload_response())
  22 +
  23 +# tclsh.eval(board_manager.
  24 +# tclsh.eval(board_manager.
  25 +# tclsh.eval(board_manager.
  26 +# tclsh.eval(board_manager.
  27 +# tclsh.eval(board_manager.
  28 +# tclsh.eval(board_manager.
  29 +# tclsh.eval(board_manager.
  30 +# tclsh.eval(board_manager.
  31 +tclsh.eval(board_manager.disconnect())