Skip to content

Commit ada4709

Browse files
committed
Adapt tags_api to the move to hopsworks
It depends on _project_id of client; todo: ensure that it is always set up.
1 parent 139bd18 commit ada4709

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/hopsworks/core/tags_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import json
1919

20-
from hsfs import client, feature_view, tag
20+
from hopsworks import client, tag
2121

2222

2323
class TagsApi:
@@ -100,7 +100,7 @@ def get(self, metadata_instance, name: str = None, training_dataset_version=None
100100

101101
def get_path(self, metadata_instance, training_dataset_version=None):
102102
_client = client.get_instance()
103-
if isinstance(metadata_instance, feature_view.FeatureView):
103+
if type(metadata_instance).__name__ == "FeatureView":
104104
path = [
105105
"project",
106106
_client._project_id,

0 commit comments

Comments
 (0)