code-loader 1.0.91.dev7__py3-none-any.whl → 1.0.91.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.
@@ -39,7 +39,7 @@ class PreprocessResponse:
39
39
  state: Optional[DataStateType] = None
40
40
  sample_id_type: Optional[Union[Type[str], Type[int]]] = None
41
41
  sample_ids_to_instance_mappings: Optional[Dict[Union[str, int], Union[List[str], List[int]]]] = None # in use only for element instance
42
- instance_to_sample_ids_mappings: Optional[Dict[Union[str, int], Union[List[str], List[int]]]] = None # in use only for element instance
42
+ instance_to_sample_ids_mappings: Optional[Dict[Union[str, int], Union[str, int]]] = None # in use only for element instance
43
43
 
44
44
 
45
45
  def __post_init__(self) -> None:
code_loader/leaploader.py CHANGED
@@ -532,7 +532,7 @@ class LeapLoader(LeapLoaderBase):
532
532
 
533
533
  return id_type
534
534
 
535
- def get_instances_data(self, state: DataStateEnum) -> Tuple[Dict[Union[int, str], List[Union[int, str]]], Dict[Union[int, str], List[Union[int, str]]], List[Union[int, str]]]:
535
+ 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
536
  """
537
537
  This Method get the data state and returns two dictionaries that holds the mapping of the sample ids to their
538
538
  instances and the other way around and the sample ids array.
@@ -65,11 +65,11 @@ class LeapLoaderBase:
65
65
  pass
66
66
 
67
67
  @abstractmethod
68
- def get_instances_data(self, state: DataStateEnum) -> Tuple[Dict[Union[int, str], List[Union[int, str]]], Dict[Union[int, str], List[Union[int, str]]], List[Union[int, str]]]:
68
+ def get_sample_with_masks(self, state: DataStateEnum, sample_id: Union[int, str]) -> DatasetSample:
69
69
  pass
70
70
 
71
71
  @abstractmethod
72
- def get_sample_masks(self, state: DataStateEnum, sample_id: Union[int, str]) -> List[DatasetSample]:
72
+ 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]]]:
73
73
  pass
74
74
 
75
75
  @abstractmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: code-loader
3
- Version: 1.0.91.dev7
3
+ Version: 1.0.91.dev9
4
4
  Summary:
5
5
  Home-page: https://github.com/tensorleap/code-loader
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
1
  LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
2
2
  code_loader/__init__.py,sha256=6MMWr0ObOU7hkqQKgOqp4Zp3I28L7joGC9iCbQYtAJg,241
3
3
  code_loader/contract/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- code_loader/contract/datasetclasses.py,sha256=L8r4VN9x99gN8xTKl-JoO4r_h8Abx21XhtbZ0Xuw_f8,8612
4
+ code_loader/contract/datasetclasses.py,sha256=brtMp6tmG_ulOMeo47HbHDEshrVcNO9PycYNsJ7H81E,8600
5
5
  code_loader/contract/enums.py,sha256=GEFkvUMXnCNt-GOoz7NJ9ecQZ2PPDettJNOsxsiM0wk,1622
6
6
  code_loader/contract/exceptions.py,sha256=jWqu5i7t-0IG0jGRsKF4DjJdrsdpJjIYpUkN1F4RiyQ,51
7
7
  code_loader/contract/mapping.py,sha256=e11h_sprwOyE32PcqgRq9JvyahQrPzwqgkhmbQLKLQY,1165
@@ -22,12 +22,12 @@ code_loader/experiment_api/workingspace_config_utils.py,sha256=DLzXQCg4dgTV_YgaS
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=ETTvjFHq6VX1zgKqyyVP3nJLGyUBrfO1uGF89B7sTYo,32807
24
24
  code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=3T9sq9UmrRgfHuTJqJii0uyG6xd060cPKJ98TFFQcrc,28806
25
- code_loader/leaploader.py,sha256=GotVm-yi8xhSLEg4E8Qt7q0Yip24d73p-NRSTxzbFmU,28837
26
- code_loader/leaploaderbase.py,sha256=mUwQcOEiYFhevhUetyga4YdJXC1dAbntehW9i2jDl_Q,4558
25
+ code_loader/leaploader.py,sha256=30Bm9jIrTQPLnHIeL7XhNt1CkuyIWWqlInCWy9IKh38,28831
26
+ code_loader/leaploaderbase.py,sha256=tpMVEd97675b_var4hvesjN7EgQzoCbPEayNBut6AvI,4551
27
27
  code_loader/utils.py,sha256=lISPFgQETSXc-P9jsIDq8YhXiaT58sHX0bXMJ4Aavqg,2722
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.91.dev7.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
31
- code_loader-1.0.91.dev7.dist-info/METADATA,sha256=XPKPLBCkCOpZ56A8jeaBNy25amVcJ0MKPLH2yWLdmZo,854
32
- code_loader-1.0.91.dev7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- code_loader-1.0.91.dev7.dist-info/RECORD,,
30
+ code_loader-1.0.91.dev9.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
31
+ code_loader-1.0.91.dev9.dist-info/METADATA,sha256=d4nk1yDxCZue0nhSx0ABMd14SNlAJN9ERAjp04qcvlA,854
32
+ code_loader-1.0.91.dev9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ code_loader-1.0.91.dev9.dist-info/RECORD,,