From 95fa68d705cc30edb5e447251742595896ee7c9d Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Sun, 15 Oct 2017 21:42:28 -0700 Subject: [PATCH] Default information --- templates/index.html | 4 +++- test.py | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index 9cac39c..6802cbf 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,7 +21,9 @@ - +
+ POST +
Version 0.4.27
diff --git a/test.py b/test.py index 918aaf0..9495309 100644 --- a/test.py +++ b/test.py @@ -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