Skip to content

Commit 0e3cd3a

Browse files
author
Will Trimble
committed
removed references to nonexistent column headers
1 parent f2d39c9 commit 0e3cd3a

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

examples/python/annotation_table.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,15 @@
4545
jsonstructure = async_rest_api(URI, auth=key)
4646
jsondata = jsonstructure["data"]
4747
# unpack and display the data table
48-
cols = jsondata["columns"]
4948
# rows = [x["id"] for x in jsondata["rows"]]
5049

51-
data = jsondata["data"]
50+
data = jsondata # ["data"]
5251

5352
if DEBUG:
5453
print(jsonstructure)
55-
print("COLS", cols)
5654
print("DATA", data)
5755
h = data
5856

59-
for j in range(0, len(cols)):
60-
sys.stdout.write(cols[j] +"\t")
61-
sys.stdout.write("\n")
6257
for i in range(0, len(data)):
6358
sys.stdout.write("\t".join([str(s) for s in h[i]]))
6459
sys.stdout.write("\n")

0 commit comments

Comments
 (0)