code-loader 1.0.184.dev0__py3-none-any.whl → 1.0.184.dev2__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 +6 -12
- {code_loader-1.0.184.dev0.dist-info → code_loader-1.0.184.dev2.dist-info}/METADATA +1 -1
- {code_loader-1.0.184.dev0.dist-info → code_loader-1.0.184.dev2.dist-info}/RECORD +5 -5
- {code_loader-1.0.184.dev0.dist-info → code_loader-1.0.184.dev2.dist-info}/LICENSE +0 -0
- {code_loader-1.0.184.dev0.dist-info → code_loader-1.0.184.dev2.dist-info}/WHEEL +0 -0
code_loader/leaploader.py
CHANGED
|
@@ -452,12 +452,14 @@ class LeapLoader(LeapLoaderBase):
|
|
|
452
452
|
data={},
|
|
453
453
|
state=DataStateType.additional,
|
|
454
454
|
sample_id_type=str,
|
|
455
|
+
tl_generated=True,
|
|
455
456
|
)
|
|
456
|
-
placeholder.tl_generated = True
|
|
457
457
|
self._preprocess_result_cached[DataStateEnum.additional] = placeholder
|
|
458
|
+
global_leap_binder.setup_container.preprocess.data_length[DataStateType.additional] = placeholder.length
|
|
458
459
|
else:
|
|
459
460
|
additional.sample_ids = list(additional.sample_ids) + list(new_sample_ids)
|
|
460
461
|
additional.length = len(additional.sample_ids)
|
|
462
|
+
global_leap_binder.setup_container.preprocess.data_length[DataStateType.additional] = additional.length
|
|
461
463
|
|
|
462
464
|
@staticmethod
|
|
463
465
|
def _get_all_dataset_base_handlers() -> List[Union[DatasetBaseHandler, MetadataHandler]]:
|
|
@@ -805,17 +807,9 @@ class LeapLoader(LeapLoaderBase):
|
|
|
805
807
|
return global_leap_binder.setup_container.custom_latent_space is not None
|
|
806
808
|
|
|
807
809
|
def get_instances_data(self, state: DataStateEnum) -> Tuple[Dict[str, List[str]], Dict[str, str]]:
|
|
808
|
-
"""
|
|
809
|
-
This Method get the data state and returns two dictionaries that holds the mapping of the sample ids to their
|
|
810
|
-
instances and the other way around and the sample ids array.
|
|
811
|
-
Args:
|
|
812
|
-
state: DataStateEnum state
|
|
813
|
-
Returns:
|
|
814
|
-
sample_ids_to_instance_mappings: sample id to instance mappings
|
|
815
|
-
instance_to_sample_ids_mappings: instance to sample ids mappings
|
|
816
|
-
sample_ids: sample ids array
|
|
817
|
-
"""
|
|
818
810
|
preprocess_result = self._preprocess_result()
|
|
819
|
-
preprocess_state = preprocess_result
|
|
811
|
+
preprocess_state = preprocess_result.get(state)
|
|
812
|
+
if preprocess_state is None:
|
|
813
|
+
return None, None
|
|
820
814
|
return preprocess_state.sample_ids_to_instance_mappings, preprocess_state.instance_to_sample_ids_mappings
|
|
821
815
|
|
|
@@ -23,7 +23,7 @@ code_loader/experiment_api/workingspace_config_utils.py,sha256=DLzXQCg4dgTV_YgaS
|
|
|
23
23
|
code_loader/inner_leap_binder/__init__.py,sha256=koOlJyMNYzGbEsoIbXathSmQ-L38N_pEXH_HvL7beXU,99
|
|
24
24
|
code_loader/inner_leap_binder/leapbinder.py,sha256=XLYYcV50qjMvoC1S6WW0tLBch_0g5gl1UyHiVSWYbvg,40491
|
|
25
25
|
code_loader/inner_leap_binder/leapbinder_decorators.py,sha256=YlK51b5Ryo396f7tOA7Ole3vYCLs3f5ZLm2qDQ9K1NE,105781
|
|
26
|
-
code_loader/leaploader.py,sha256=
|
|
26
|
+
code_loader/leaploader.py,sha256=70enWfzlCfp4OkWQYMIXJ__V7aoJQfgiKSHrikRnpTc,41600
|
|
27
27
|
code_loader/leaploaderbase.py,sha256=l36qDA00GhZEG5NLKpEtAXgWJA-UQQIhNFGxywK7mUA,6530
|
|
28
28
|
code_loader/mixpanel_tracker.py,sha256=rNwRmFifNbdUoqLQvvhhgpKczWpWiEmd8MfyJe27sxw,9131
|
|
29
29
|
code_loader/plot_functions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -32,7 +32,7 @@ code_loader/plot_functions/visualize.py,sha256=gsBAYYkwMh7jIpJeDMPS8G4CW-pxwx6Lz
|
|
|
32
32
|
code_loader/utils.py,sha256=YecipkdTA-VcE9F0RQcY9cFnY8P3AksPnHM2Db7xUSk,3972
|
|
33
33
|
code_loader/visualizers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
code_loader/visualizers/default_visualizers.py,sha256=onRnLE_TXfgLN4o52hQIOOhUcFexGlqJ3xSpQDVLuZM,2604
|
|
35
|
-
code_loader-1.0.184.
|
|
36
|
-
code_loader-1.0.184.
|
|
37
|
-
code_loader-1.0.184.
|
|
38
|
-
code_loader-1.0.184.
|
|
35
|
+
code_loader-1.0.184.dev2.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
|
|
36
|
+
code_loader-1.0.184.dev2.dist-info/METADATA,sha256=ye_o6x8GQGs0cQsHnOIh27A8TRnCRq64p_6XwslFsv4,1095
|
|
37
|
+
code_loader-1.0.184.dev2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
38
|
+
code_loader-1.0.184.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|