Skip to content

Commit 5d19edb

Browse files
committed
ADD flag to list runs with errors
1 parent a5cb405 commit 5d19edb

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
@@ -449,7 +449,7 @@ def _get_cached_run(run_id):
449449

450450

451451
def list_runs(offset=None, size=None, id=None, task=None, setup=None,
452-
flow=None, uploader=None, tag=None):
452+
flow=None, uploader=None, tag=None, display_errors=False):
453453
"""List all runs matching all of the given filters.
454454
455455
Perform API call `/run/list/{filters} <https://www.openml.org/api_docs/#!/run/get_run_list_filters>`_
@@ -473,6 +473,9 @@ def list_runs(offset=None, size=None, id=None, task=None, setup=None,
473473
474474
tag : str, optional
475475
476+
display_errors : bool, optional (default=None)
477+
Whether to list runs which have an error (for example a missing
478+
prediction file).
476479
Returns
477480
-------
478481
list
@@ -496,6 +499,8 @@ def list_runs(offset=None, size=None, id=None, task=None, setup=None,
496499
api_call += "/uploader/%s" % ','.join([str(int(i)) for i in uploader])
497500
if tag is not None:
498501
api_call += "/tag/%s" % tag
502+
if display_errors:
503+
api_call += "/show_errors/true"
499504

500505
return _list_runs(api_call)
501506

0 commit comments

Comments
 (0)