Skip to content
Merged
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
10 changes: 7 additions & 3 deletions mteb/load_results/task_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,14 @@ def from_disk(cls, path: Path, load_historic_data: bool = True) -> TaskResult:
)

pre_1_11_load = (
"mteb_version" in data
and data["mteb_version"] is not None
and Version(data["mteb_version"]) < Version("1.11.0")
(
"mteb_version" in data
and data["mteb_version"] is not None
and Version(data["mteb_version"]) < Version("1.11.0")
)
or "mteb_version" not in data
) # assume it is before 1.11.0 if the version is not present

try:
obj = cls.model_validate(data)
except Exception as e:
Expand Down