Browse Source

More intelligible debug information.

master
Pete Shadbolt 8 years ago
parent
commit
0681aee924
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      bin/abpserver

+ 5
- 1
bin/abpserver View File

@@ -24,7 +24,11 @@ local_state = abp.GraphState()
def process_edit(edit, client, server): def process_edit(edit, client, server):
action = edit["action"] action = edit["action"]


pprint(edit)
print action.upper()
for key, value in edit.items():
if key!="action":
print " {}: {}".format(key, value)
print


if action == "create": if action == "create":
local_state.add_qubit(edit["name"], position=edit["position"], vop=0) local_state.add_qubit(edit["name"], position=edit["position"], vop=0)


Loading…
Cancel
Save