nomic 3.1.3__tar.gz → 3.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nomic might be problematic. Click here for more details.
- {nomic-3.1.3 → nomic-3.2.0}/PKG-INFO +1 -1
- {nomic-3.1.3 → nomic-3.2.0}/nomic/dataset.py +9 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic.egg-info/PKG-INFO +1 -1
- {nomic-3.1.3 → nomic-3.2.0}/setup.py +1 -1
- {nomic-3.1.3 → nomic-3.2.0}/README.md +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/__init__.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/atlas.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/aws/__init__.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/aws/sagemaker.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/cli.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/data_inference.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/data_operations.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/embed.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/pl_callbacks/__init__.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/pl_callbacks/pl_callback.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/settings.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic/utils.py +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic.egg-info/SOURCES.txt +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic.egg-info/dependency_links.txt +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic.egg-info/entry_points.txt +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic.egg-info/requires.txt +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/nomic.egg-info/top_level.txt +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/pyproject.toml +0 -0
- {nomic-3.1.3 → nomic-3.2.0}/setup.cfg +0 -0
|
@@ -140,6 +140,9 @@ class AtlasClass(object):
|
|
|
140
140
|
if organization["user_id"] == user["sub"] and organization["access_role"] == "OWNER":
|
|
141
141
|
return organization
|
|
142
142
|
|
|
143
|
+
for organization in user["organizations"]:
|
|
144
|
+
if organization["user_id"] == user["sub"]:
|
|
145
|
+
return organization
|
|
143
146
|
return {}
|
|
144
147
|
|
|
145
148
|
def _delete_project_by_id(self, project_id):
|
|
@@ -213,6 +216,9 @@ class AtlasClass(object):
|
|
|
213
216
|
headers=self.header,
|
|
214
217
|
)
|
|
215
218
|
|
|
219
|
+
if response.status_code == 403:
|
|
220
|
+
raise ValueError(response.json()["detail"])
|
|
221
|
+
|
|
216
222
|
if response.status_code != 200:
|
|
217
223
|
return None
|
|
218
224
|
|
|
@@ -827,6 +833,9 @@ class AtlasDataset(AtlasClass):
|
|
|
827
833
|
organization_id = self._get_organization_by_slug(slug=identifier)
|
|
828
834
|
project_slug = identifier.split("/")[1]
|
|
829
835
|
|
|
836
|
+
if "/" in identifier:
|
|
837
|
+
org_name = identifier.split("/")[0]
|
|
838
|
+
logger.info(f"Organization name: `{org_name}`")
|
|
830
839
|
# supported_modalities = ['text', 'embedding']
|
|
831
840
|
# if modality not in supported_modalities:
|
|
832
841
|
# msg = 'Tried to create dataset with modality: {}, but Atlas only supports: {}'.format(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|