Skip to content

Commit 33bf643

Browse files
sahithyaravimfeurer
authored andcommitted
add task_type to list_runs (#857)
* add task_type to list_runs * length of run change * changelog * changes in progress rst
1 parent e489f41 commit 33bf643

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

doc/progress.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Changelog
88

99
0.10.2
1010
~~~~~~
11+
* ADD #857: Adds task type ID to list_runs
1112
* DOC #862: Added license BSD 3-Clause to each of the source files.
1213

1314
0.10.1

openml/runs/functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,7 @@ def __list_runs(api_call, output_format='dict'):
969969
'setup_id': int(run_['oml:setup_id']),
970970
'flow_id': int(run_['oml:flow_id']),
971971
'uploader': int(run_['oml:uploader']),
972+
'task_type': int(run_['oml:task_type_id']),
972973
'upload_time': str(run_['oml:upload_time']),
973974
'error_message': str((run_['oml:error_message']) or '')}
974975

tests/test_runs/test_run_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ def _check_run(self, run):
11281128
# error_message and run_details exist, too, but are not used so far. We need to update
11291129
# this check once they are used!
11301130
self.assertIsInstance(run, dict)
1131-
assert len(run) == 7, str(run)
1131+
assert len(run) == 8, str(run)
11321132

11331133
def test_get_runs_list(self):
11341134
# TODO: comes from live, no such lists on test

0 commit comments

Comments
 (0)