We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6675209 commit 0740b68Copy full SHA for 0740b68
1 file changed
openml/runs/functions.py
@@ -699,14 +699,17 @@ def _create_run_from_xml(xml):
699
700
701
def _create_trace_from_description(xml):
702
- result_dict = xmltodict.parse(xml)['oml:trace']
+ result_dict = xmltodict.parse(xml, force_list=('oml:trace_iteration',))['oml:trace']
703
704
run_id = result_dict['oml:run_id']
705
trace = dict()
706
707
if 'oml:trace_iteration' not in result_dict:
708
raise ValueError('Run does not contain valid trace. ')
709
710
+ assert type(result_dict['oml:trace_iteration']) == list, \
711
+ type(result_dict['oml:trace_iteration'])
712
+
713
for itt in result_dict['oml:trace_iteration']:
714
repeat = int(itt['oml:repeat'])
715
fold = int(itt['oml:fold'])
0 commit comments