Skip to content

Commit

Permalink
fix: internal schema attr does not exist when loading existing AtlasD…
Browse files Browse the repository at this point in the history
…ataset (#365)
  • Loading branch information
wilson-nomic authored Dec 11, 2024
1 parent 03532f0 commit f102513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nomic/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,8 @@ def __init__(
f"Passing organization_name has been removed in Nomic Python client 3.0. Instead identify your dataset with `organization_name/project_name` (e.g. sterling-cooper/november-ads)."
)

# Set this before possible early return.
self._schema = None
if dataset_id is not None:
self.meta = self._get_project_by_id(dataset_id)
return
Expand Down Expand Up @@ -817,7 +819,6 @@ def __init__(
)

self.meta = self._get_project_by_id(project_id=dataset_id)
self._schema = None

def delete(self):
"""
Expand Down

0 comments on commit f102513

Please sign in to comment.