Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Samoed committed Nov 15, 2024
1 parent 68eb498 commit e3804f1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mteb/load_results/task_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,12 @@ 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)
Expand Down

0 comments on commit e3804f1

Please sign in to comment.