Skip to content

Commit

Permalink
Display dataset link instead of map link (#311)
Browse files Browse the repository at this point in the history
* display dataset link instead

* whoops wrong comment
  • Loading branch information
rguo123 authored Jun 27, 2024
1 parent 8e89f71 commit 1f042be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion nomic/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,13 @@ def map_link(self):
return f"{self.dataset.web_path}/data/{self.dataset.meta['organization_slug']}/{self.dataset.meta['slug']}/map"
# return f"{self.project.web_path}/data/{self.project.meta['organization_slug']}/{self.project.meta['slug']}/map"

@property
def dataset_link(self):
"""
Retrieves a dataset link.
"""
return f"{self.dataset.web_path}/data/{self.dataset.meta['organization_slug']}/{self.dataset.meta['slug']}"

@property
def _status(self):
response = requests.get(
Expand All @@ -450,7 +457,7 @@ def _status(self):
return content

def __str__(self):
return f"{self.name}: {self.map_link}"
return f"{self.name}: {self.dataset_link}"

def __repr__(self):
return self.__str__()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="nomic",
version="3.0.34",
version="3.0.35",
url="https://github.com/nomic-ai/nomic",
description=description,
long_description=description,
Expand Down

0 comments on commit 1f042be

Please sign in to comment.