nomic 3.0.42__tar.gz → 3.0.43__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nomic
3
- Version: 3.0.42
3
+ Version: 3.0.43
4
4
  Summary: The official Nomic python client.
5
5
  Home-page: https://github.com/nomic-ai/nomic
6
6
  Author: nomic.ai
@@ -1089,6 +1089,11 @@ class AtlasDataset(AtlasClass):
1089
1089
  if modality is None:
1090
1090
  modality = self.meta["modality"]
1091
1091
 
1092
+ if modality == "image":
1093
+ indexed_field = "_blob_hash"
1094
+ if indexed_field is not None:
1095
+ logger.warning("Ignoring indexed_field for image datasets. Only _blob_hash is supported.")
1096
+
1092
1097
  colorable_fields = []
1093
1098
 
1094
1099
  for field in self.dataset_fields:
@@ -1155,11 +1160,6 @@ class AtlasDataset(AtlasClass):
1155
1160
  if indexed_field is None and modality == "text":
1156
1161
  raise Exception("You did not specify a field to index. Specify an 'indexed_field'.")
1157
1162
 
1158
- if modality == "image":
1159
- indexed_field = "_blob_hash"
1160
- if indexed_field is not None:
1161
- logger.warning("Ignoring indexed_field for image datasets. Only _blob_hash is supported.")
1162
-
1163
1163
  if indexed_field not in self.dataset_fields:
1164
1164
  raise Exception(f"Indexing on {indexed_field} not allowed. Valid options are: {self.dataset_fields}")
1165
1165
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nomic
3
- Version: 3.0.42
3
+ Version: 3.0.43
4
4
  Summary: The official Nomic python client.
5
5
  Home-page: https://github.com/nomic-ai/nomic
6
6
  Author: nomic.ai
@@ -8,7 +8,7 @@ description = "The official Nomic python client."
8
8
 
9
9
  setup(
10
10
  name="nomic",
11
- version="3.0.42",
11
+ version="3.0.43",
12
12
  url="https://github.com/nomic-ai/nomic",
13
13
  description=description,
14
14
  long_description=description,
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