code-loader 1.0.49.dev8__py3-none-any.whl → 1.0.49.dev9__py3-none-any.whl
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.
- code_loader/leaploader.py +7 -0
- {code_loader-1.0.49.dev8.dist-info → code_loader-1.0.49.dev9.dist-info}/METADATA +1 -1
- {code_loader-1.0.49.dev8.dist-info → code_loader-1.0.49.dev9.dist-info}/RECORD +5 -5
- {code_loader-1.0.49.dev8.dist-info → code_loader-1.0.49.dev9.dist-info}/LICENSE +0 -0
- {code_loader-1.0.49.dev8.dist-info → code_loader-1.0.49.dev9.dist-info}/WHEEL +0 -0
code_loader/leaploader.py
CHANGED
@@ -155,6 +155,13 @@ class LeapLoader:
|
|
155
155
|
test_result = DatasetTestResultPayload('preprocess')
|
156
156
|
try:
|
157
157
|
preprocess_result = self._preprocess_result()
|
158
|
+
if self.get_sample_id_type() is str:
|
159
|
+
max_allowed_item_size = np.dtype('<U256').itemsize
|
160
|
+
for state, preprocess_response in preprocess_result.items():
|
161
|
+
sample_ids_array = np.array(preprocess_response.sample_ids)
|
162
|
+
if sample_ids_array.dtype.itemsize > max_allowed_item_size:
|
163
|
+
raise Exception(f"Sample id are too long. Max allowed length is 256 charecters.")
|
164
|
+
|
158
165
|
global_leap_binder.check_preprocess(preprocess_result)
|
159
166
|
except Exception as e:
|
160
167
|
line_number, file_name, stacktrace = get_root_exception_file_and_line_number()
|
@@ -19,11 +19,11 @@ code_loader/experiment_api/utils.py,sha256=XZHtxge12TS4H4-8PjV3sKuhp8Ud6ojAiIzTZ
|
|
19
19
|
code_loader/experiment_api/workingspace_config_utils.py,sha256=DLzXQCg4dgTV_YgaSbeTVzq-2ja_SQw4zi7LXwKL9cY,990
|
20
20
|
code_loader/inner_leap_binder/__init__.py,sha256=koOlJyMNYzGbEsoIbXathSmQ-L38N_pEXH_HvL7beXU,99
|
21
21
|
code_loader/inner_leap_binder/leapbinder.py,sha256=URm7W1W0KnmDqFMp1yPQrZQwm2B9DQ9oHVvAwRFkJuc,24934
|
22
|
-
code_loader/leaploader.py,sha256=
|
22
|
+
code_loader/leaploader.py,sha256=wv9pJ44w8BeuvDQpp-9uCvbMAa5IbhgXD9CeGkeEbLE,19531
|
23
23
|
code_loader/utils.py,sha256=TZAoUbA2pE8eK3Le3s5Xr4eRaYdeDMQtxotx6rh-5oE,2185
|
24
24
|
code_loader/visualizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
25
|
code_loader/visualizers/default_visualizers.py,sha256=VoqO9FN84yXyMjRjHjUTOt2GdTkJRMbHbXJ1cJkREkk,2230
|
26
|
-
code_loader-1.0.49.
|
27
|
-
code_loader-1.0.49.
|
28
|
-
code_loader-1.0.49.
|
29
|
-
code_loader-1.0.49.
|
26
|
+
code_loader-1.0.49.dev9.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
|
27
|
+
code_loader-1.0.49.dev9.dist-info/METADATA,sha256=Ug2IZqSHAzJBmDGE0m9iyoVFAXR4YZnESGMKblwB7p0,893
|
28
|
+
code_loader-1.0.49.dev9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
29
|
+
code_loader-1.0.49.dev9.dist-info/RECORD,,
|
File without changes
|
File without changes
|