From d4e117f44c522f3791459977bcb55e8aa0c8821b Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 5 Jul 2024 13:54:36 +0200 Subject: [PATCH] Adapt tags_api to the move to hopsworks It depends on _project_id of client; todo: ensure that it is always set up. --- python/hopsworks/core/tags_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/hopsworks/core/tags_api.py b/python/hopsworks/core/tags_api.py index c216be14c..50cd61786 100644 --- a/python/hopsworks/core/tags_api.py +++ b/python/hopsworks/core/tags_api.py @@ -17,7 +17,7 @@ import json -from hsfs import client, feature_view, tag +from hopsworks import client, tag class TagsApi: @@ -100,7 +100,7 @@ def get(self, metadata_instance, name: str = None, training_dataset_version=None def get_path(self, metadata_instance, training_dataset_version=None): _client = client.get_instance() - if isinstance(metadata_instance, feature_view.FeatureView): + if type(metadata_instance).__name__ == "FeatureView": path = [ "project", _client._project_id,