Skip to content

Commit c53a731

Browse files
authored
Merge pull request #235 from openml/FIX_upstream_410
Flag to list runs with errors
2 parents 59e5a37 + ff4ca9f commit c53a731

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

openml/runs/functions.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def _get_cached_run(run_id):
796796

797797

798798
def list_runs(offset=None, size=None, id=None, task=None, setup=None,
799-
flow=None, uploader=None, tag=None):
799+
flow=None, uploader=None, tag=None, display_errors=False):
800800
"""List all runs matching all of the given filters.
801801
802802
Perform API call `/run/list/{filters} <https://www.openml.org/api_docs/#!/run/get_run_list_filters>`_
@@ -820,6 +820,9 @@ def list_runs(offset=None, size=None, id=None, task=None, setup=None,
820820
821821
tag : str, optional
822822
823+
display_errors : bool, optional (default=None)
824+
Whether to list runs which have an error (for example a missing
825+
prediction file).
823826
Returns
824827
-------
825828
list
@@ -843,6 +846,8 @@ def list_runs(offset=None, size=None, id=None, task=None, setup=None,
843846
api_call += "/uploader/%s" % ','.join([str(int(i)) for i in uploader])
844847
if tag is not None:
845848
api_call += "/tag/%s" % tag
849+
if display_errors:
850+
api_call += "/show_errors/true"
846851

847852
return _list_runs(api_call)
848853

0 commit comments

Comments
 (0)