Skip to content
Open
Changes from all commits
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
7 changes: 4 additions & 3 deletions openml/evaluations/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ def __list_evaluations(api_call: str) -> list[OpenMLEvaluation]:
"Error in return XML, does not contain " f'"oml:evaluations": {evals_dict!s}',
)

assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), type(
evals_dict["oml:evaluations"],
)
assert isinstance(
evals_dict["oml:evaluations"]["oml:evaluation"], list
), "Expected 'oml:evaluation' to be a list, but got"
f"{type(evals_dict['oml:evaluations']['oml:evaluation']).__name__}. "

uploader_ids = list(
{eval_["oml:uploader"] for eval_ in evals_dict["oml:evaluations"]["oml:evaluation"]},
Expand Down