Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add task_type to list_runs (#857)
* add task_type to list_runs

* length of run change

* changelog

* changes in progress rst
  • Loading branch information
sahithyaravi authored and mfeurer committed Nov 6, 2019
commit 33bf643605fc5ec645200539136865d84679727d
1 change: 1 addition & 0 deletions doc/progress.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Changelog

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

0.10.1
Expand Down
1 change: 1 addition & 0 deletions openml/runs/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ def __list_runs(api_call, output_format='dict'):
'setup_id': int(run_['oml:setup_id']),
'flow_id': int(run_['oml:flow_id']),
'uploader': int(run_['oml:uploader']),
'task_type': int(run_['oml:task_type_id']),
'upload_time': str(run_['oml:upload_time']),
'error_message': str((run_['oml:error_message']) or '')}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_runs/test_run_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ def _check_run(self, run):
# error_message and run_details exist, too, but are not used so far. We need to update
# this check once they are used!
self.assertIsInstance(run, dict)
assert len(run) == 7, str(run)
assert len(run) == 8, str(run)

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