Browse Source

Default information

master
Pete Shadbolt 6 years ago
parent
commit
95fa68d705
2 changed files with 9 additions and 3 deletions
  1. +3
    -1
      templates/index.html
  2. +6
    -2
      test.py

+ 3
- 1
templates/index.html View File

@@ -21,7 +21,9 @@
<body>
<img id=ball src="{{url_for("static", filename="img/ball.png") }}" style=display:none;>
<img id=tip src="{{url_for("static", filename="img/tip.png") }}" style=display:none;>
<div id=node_info class=hidden> nothing </div>
<div id=node_info>
POST
</div>
<div id=server_info class=hidden> </div>

<div id=version>Version 0.4.27</div>


+ 6
- 2
test.py View File

@@ -5,9 +5,13 @@ import requests
import json
import abp

#URL = "http://localhost:5000"
URL = "https://abv.peteshadbolt.co.uk/"

def test_graph():
N = 100
g = abp.NXGraphState(range(N), vop="hadamard")
g = abp.NXGraphState(range(N))

for i in range(N-1):
g.act_cz(i, i+1)
g.layout()
@@ -15,6 +19,6 @@ def test_graph():

if __name__ == '__main__':
data = json.dumps(test_graph().to_json(stringify=False))
r = requests.post("http://localhost:5000/graph", data=data)
r = requests.post("{}/graph".format(URL), data=data)
print r.status_code, r.content


Loading…
Cancel
Save