code-loader 1.0.94.dev7__py3-none-any.whl → 1.0.94.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.

Potentially problematic release.


This version of code-loader might be problematic. Click here for more details.

@@ -302,8 +302,8 @@ def tensorleap_element_instance_preprocess(instance_mask_encoder: Callable[[int,
302
302
  # 'instance_name': preprocess.instance_id_to_instance_name[idx]}
303
303
  # return '0'
304
304
  return {'is_instance': '0',
305
- 'orig_sample_id': preprocess.instance_to_sample_ids_mappings[idx],
306
- 'instance_name': preprocess.instance_id_to_instance_name[idx]}
305
+ 'original_sample_id': idx,
306
+ 'instance_name': 'none'}
307
307
  leap_binder.set_preprocess(user_function_instance)
308
308
  leap_binder.set_metadata(metadata_is_instance, "builtin_instance_metadata")
309
309
 
code_loader/leaploader.py CHANGED
@@ -533,7 +533,7 @@ class LeapLoader(LeapLoaderBase):
533
533
 
534
534
  return id_type
535
535
 
536
- def get_instances_data(self, state: DataStateEnum) -> Tuple[Dict[Union[int, str], List[Union[int, str]]], Dict[Union[int, str], Union[int, str]], List[Union[int, str]]]:
536
+ def get_instances_data(self, state: DataStateEnum) -> Tuple[Dict[str, List[str]], Dict[str, str], Dict[str, str]]:
537
537
  """
538
538
  This Method get the data state and returns two dictionaries that holds the mapping of the sample ids to their
539
539
  instances and the other way around and the sample ids array.
@@ -546,4 +546,4 @@ class LeapLoader(LeapLoaderBase):
546
546
  """
547
547
  preprocess_result = self._preprocess_result()
548
548
  preprocess_state = preprocess_result[state]
549
- return preprocess_state.sample_ids_to_instance_mappings, preprocess_state.instance_to_sample_ids_mappings, preprocess_state.sample_ids
549
+ return preprocess_state.sample_ids_to_instance_mappings, preprocess_state.instance_to_sample_ids_mappings, preprocess_state.instance_id_to_instance_name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: code-loader
3
- Version: 1.0.94.dev7
3
+ Version: 1.0.94.dev9
4
4
  Summary:
5
5
  Home-page: https://github.com/tensorleap/code-loader
6
6
  License: MIT
@@ -21,13 +21,13 @@ 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=wmCOj_YKbRXqLL1k5Tw_FrcZgfmgnVQcjs2ok6wdlww,32362
24
- code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=RakrDpLaBrIBQxV7qVeRqVoIzg0oXygy4WG4JSX66Qo,29903
25
- code_loader/leaploader.py,sha256=HPDZb10HPYh18_HjoIYT8ipB5pmVvL5tEI_KFKmHS7g,28866
24
+ code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=DKCo8wDwZC2ZuLeMlJSnmonBFFjBCwQsP0d5AoYtm5M,29825
25
+ code_loader/leaploader.py,sha256=NTsvvsXdi29qU6TvCyU4BC5ndNFnus878OvDY39je9U,28829
26
26
  code_loader/leaploaderbase.py,sha256=tpMVEd97675b_var4hvesjN7EgQzoCbPEayNBut6AvI,4551
27
27
  code_loader/utils.py,sha256=_j8b60pimoNAvWMRj7hEkkT6C76qES6cZoBFHpXHMxA,2698
28
28
  code_loader/visualizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  code_loader/visualizers/default_visualizers.py,sha256=669lBpLISLO6my5Qcgn1FLDDeZgHumPf252m4KHY4YM,2555
30
- code_loader-1.0.94.dev7.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
31
- code_loader-1.0.94.dev7.dist-info/METADATA,sha256=3IfUV-xtbZnjrh8xpNTmVKVWSd2yVdNQbDOw9fXEJBw,854
32
- code_loader-1.0.94.dev7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- code_loader-1.0.94.dev7.dist-info/RECORD,,
30
+ code_loader-1.0.94.dev9.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
31
+ code_loader-1.0.94.dev9.dist-info/METADATA,sha256=hyM-acLEVqJCa2mZTUDiJjx8Spt6t-jOLwN3V9W-HV0,854
32
+ code_loader-1.0.94.dev9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ code_loader-1.0.94.dev9.dist-info/RECORD,,