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
3 changes: 2 additions & 1 deletion mlflow_export_import/common/iterators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import mlflow
from packaging import version


class BaseIterator():
Expand All @@ -14,7 +15,7 @@ def __init__(self, search_method, max_results=None, filter=None):
self.kwargs = { "max_results": self.max_results } if self.max_results else {}

def _call_iter(self):
if mlflow.__version__ < "2.2.1":
if version.parse(mlflow.__version__) < version.parse("2.2.1"):
return self.search_method(filter_string=self.filter) #7623 - https://mlflow.org/docs/2.1.1/python_api/mlflow.client.html
else:
return self.search_method(filter_string=self.filter, **self.kwargs) # https://mlflow.org/docs/latest/python_api/mlflow.client.html
Expand Down