code-loader 1.0.157.dev2__py3-none-any.whl → 1.0.157.dev4__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.
@@ -1189,30 +1189,30 @@ def tensorleap_instances_masks_encoder(name: str):
1189
1189
  (f'tensorleap_instances_masks_encoder validation failed: '
1190
1190
  f'Argument instance_id should be int. Got {type(instance_id)}.')
1191
1191
 
1192
- def _validate_metadata_result(result):
1193
- supported_result_types = (type(None), int, str, bool, float, dict, np.floating,
1194
- np.bool_, np.unsignedinteger, np.signedinteger, np.integer)
1195
- validate_output_structure(result, func_name=user_function.__name__,
1196
- expected_type_name=supported_result_types)
1197
- assert isinstance(result, supported_result_types), \
1198
- (f'{user_function.__name__}() validation failed: '
1199
- f'Unsupported return type. Got {type(result)}. should be any of {str(supported_result_types)}')
1200
- if isinstance(result, dict):
1201
- for key, value in result.items():
1202
- assert isinstance(key, str), \
1203
- (f'{user_function.__name__}() validation failed: '
1204
- f'Keys in the return dict should be of type str. Got {type(key)}.')
1205
- assert isinstance(value, supported_result_types), \
1206
- (f'{user_function.__name__}() validation failed: '
1207
- f'Values in the return dict should be of type {str(supported_result_types)}. Got {type(value)}.')
1192
+ # def _validate_metadata_result(result):
1193
+ # supported_result_types = (type(None), int, str, bool, float, dict, np.floating,
1194
+ # np.bool_, np.unsignedinteger, np.signedinteger, np.integer)
1195
+ # validate_output_structure(result, func_name=user_function.__name__,
1196
+ # expected_type_name=supported_result_types)
1197
+ # assert isinstance(result, supported_result_types), \
1198
+ # (f'{user_function.__name__}() validation failed: '
1199
+ # f'Unsupported return type. Got {type(result)}. should be any of {str(supported_result_types)}')
1200
+ # if isinstance(result, dict):
1201
+ # for key, value in result.items():
1202
+ # assert isinstance(key, str), \
1203
+ # (f'{user_function.__name__}() validation failed: '
1204
+ # f'Keys in the return dict should be of type str. Got {type(key)}.')
1205
+ # assert isinstance(value, supported_result_types), \
1206
+ # (f'{user_function.__name__}() validation failed: '
1207
+ # f'Values in the return dict should be of type {str(supported_result_types)}. Got {type(value)}.')
1208
1208
 
1209
1209
 
1210
1210
  def _validate_result(result):
1211
1211
  assert isinstance(result, ElementInstance) or (result is None), \
1212
1212
  (f'tensorleap_instances_masks_encoder validation failed: '
1213
1213
  f'Unsupported return type. Should be a ElementInstance or None. Got {type(result)}.')
1214
- element_instance_metadata = ElementInstance.instance_metadata
1215
- _validate_metadata_result(element_instance_metadata)
1214
+ element_instance_metadata = result.instance_metadata
1215
+ # _validate_metadata_result(element_instance_metadata)
1216
1216
 
1217
1217
 
1218
1218
  def inner_without_validate(sample_id, preprocess_response, instance_id):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: code-loader
3
- Version: 1.0.157.dev2
3
+ Version: 1.0.157.dev4
4
4
  Summary:
5
5
  Home-page: https://github.com/tensorleap/code-loader
6
6
  License: MIT
@@ -21,7 +21,7 @@ code_loader/experiment_api/utils.py,sha256=XZHtxge12TS4H4-8PjV3sKuhp8Ud6ojAiIzTZ
21
21
  code_loader/experiment_api/workingspace_config_utils.py,sha256=DLzXQCg4dgTV_YgaSbeTVzq-2ja_SQw4zi7LXwKL9cY,990
22
22
  code_loader/inner_leap_binder/__init__.py,sha256=koOlJyMNYzGbEsoIbXathSmQ-L38N_pEXH_HvL7beXU,99
23
23
  code_loader/inner_leap_binder/leapbinder.py,sha256=Q3D9yVM-GNEJfYRFvMV__BoZbcWOgnWKhrZXAv6Tu7o,33232
24
- code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=5egAsgnq_4OvQgKbBUTMtl0CO-t7ptiBfFOrUWIZvTI,83365
24
+ code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=pFYVGTlqAT-GP36PwPXGe-J4oiot3tiTOMP0QLrmF3U,83390
25
25
  code_loader/leaploader.py,sha256=InmCpsmsh71Yv38a1gweG9KsQpg4iTKv2m7RJVTDbUI,30673
26
26
  code_loader/leaploaderbase.py,sha256=NXCDIIF7-ziGJccKIE9NszMSYKEE-3bn4Z4Xa3oYYOc,5909
27
27
  code_loader/mixpanel_tracker.py,sha256=eKvymkw7X2Ht6iw-a0V9VQm6OnB9kW7hYy35YtwRAvU,8457
@@ -31,7 +31,7 @@ code_loader/plot_functions/visualize.py,sha256=gsBAYYkwMh7jIpJeDMPS8G4CW-pxwx6Lz
31
31
  code_loader/utils.py,sha256=gXENTYpjdidq2dx0gVbXlErPeHoNs-4TYAZbLRe0y2c,2712
32
32
  code_loader/visualizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  code_loader/visualizers/default_visualizers.py,sha256=onRnLE_TXfgLN4o52hQIOOhUcFexGlqJ3xSpQDVLuZM,2604
34
- code_loader-1.0.157.dev2.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
35
- code_loader-1.0.157.dev2.dist-info/METADATA,sha256=XgvU9M91IpNGPeJZ4CLV9ETHMAJebU0JjEMvOxaFCz0,1095
36
- code_loader-1.0.157.dev2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
37
- code_loader-1.0.157.dev2.dist-info/RECORD,,
34
+ code_loader-1.0.157.dev4.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
35
+ code_loader-1.0.157.dev4.dist-info/METADATA,sha256=psMN20vCj9p9VoJYf7Iw0aa_3uYaUQk_V8HZTf1G9qE,1095
36
+ code_loader-1.0.157.dev4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
37
+ code_loader-1.0.157.dev4.dist-info/RECORD,,