PathologyDataScience/glimr

Dictionary Key Indexing

Closed this issue · 2 comments

Python return the dict_keys object when calling a dictionary keys

The following lines(Line 116 in Search.py) need to be modified

task_name = space["tasks"].keys()[0]
metricname = space["tasks"][taskname].keys()[0]

to

task_name = list(space["tasks"].keys())[0]
metricname = list(space["tasks"][taskname].keys())[0]

Addressed by PR #37