code-loader 1.0.181.dev4__py3-none-any.whl → 1.0.181.dev5__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/inner_leap_binder/leapbinder.py +3 -2
- code_loader/leaploader.py +5 -3
- {code_loader-1.0.181.dev4.dist-info → code_loader-1.0.181.dev5.dist-info}/METADATA +1 -1
- {code_loader-1.0.181.dev4.dist-info → code_loader-1.0.181.dev5.dist-info}/RECORD +6 -6
- {code_loader-1.0.181.dev4.dist-info → code_loader-1.0.181.dev5.dist-info}/LICENSE +0 -0
- {code_loader-1.0.181.dev4.dist-info → code_loader-1.0.181.dev5.dist-info}/WHEEL +0 -0
|
@@ -690,9 +690,10 @@ class LeapBinder:
|
|
|
690
690
|
preprocess_response.tl_generated = True
|
|
691
691
|
if not preprocess_response.length or preprocess_response.length < 1:
|
|
692
692
|
raise Exception("Simulation '{}' returned PreprocessResponse with length < 1".format(sim.name))
|
|
693
|
+
preprocess_response.sample_ids = [0]
|
|
693
694
|
for handler in self.setup_container.inputs:
|
|
694
|
-
out1 = handler.function(0, preprocess_response)
|
|
695
|
-
out2 = handler.function(0, preprocess_response)
|
|
695
|
+
out1 = handler.function(preprocess_response.sample_ids[0], preprocess_response)
|
|
696
|
+
out2 = handler.function(preprocess_response.sample_ids[0], preprocess_response)
|
|
696
697
|
if not np.array_equal(out1, out2):
|
|
697
698
|
raise Exception(
|
|
698
699
|
"Simulation '{}': encoder '{}' is non-deterministic — consecutive calls with seed=0 returned different outputs".format(
|
code_loader/leaploader.py
CHANGED
|
@@ -324,9 +324,10 @@ class LeapLoader(LeapLoaderBase):
|
|
|
324
324
|
preprocess_response.tl_generated = True
|
|
325
325
|
if preprocess_response.length < 1:
|
|
326
326
|
raise ValueError("Simulation returned PreprocessResponse with length < 1")
|
|
327
|
+
preprocess_response.sample_ids = [0]
|
|
327
328
|
for handler in global_leap_binder.setup_container.inputs:
|
|
328
|
-
out1 = handler.function(0, preprocess_response)
|
|
329
|
-
out2 = handler.function(0, preprocess_response)
|
|
329
|
+
out1 = handler.function(preprocess_response.sample_ids[0], preprocess_response)
|
|
330
|
+
out2 = handler.function(preprocess_response.sample_ids[0], preprocess_response)
|
|
330
331
|
if not np.array_equal(out1, out2):
|
|
331
332
|
raise ValueError(
|
|
332
333
|
"Encoder '{}' is non-deterministic: consecutive calls with seed=0 returned different outputs".format(
|
|
@@ -363,9 +364,10 @@ class LeapLoader(LeapLoaderBase):
|
|
|
363
364
|
_simulation_context["active"] = False
|
|
364
365
|
sim_preprocess.state = DataStateType.additional
|
|
365
366
|
sim_preprocess.tl_generated = True
|
|
367
|
+
sim_preprocess.sample_ids = [0]
|
|
366
368
|
result = {}
|
|
367
369
|
for handler in global_leap_binder.setup_container.inputs:
|
|
368
|
-
result[handler.name] = handler.function(0, sim_preprocess)
|
|
370
|
+
result[handler.name] = handler.function(sim_preprocess.sample_ids[0], sim_preprocess)
|
|
369
371
|
return result
|
|
370
372
|
|
|
371
373
|
@staticmethod
|
|
@@ -21,9 +21,9 @@ code_loader/experiment_api/types.py,sha256=MY8xFARHwdVA7p4dxyhD60ShmttgTvb4qdp1o
|
|
|
21
21
|
code_loader/experiment_api/utils.py,sha256=XZHtxge12TS4H4-8PjV3sKuhp8Ud6ojAiIzTZJEqBqc,3304
|
|
22
22
|
code_loader/experiment_api/workingspace_config_utils.py,sha256=DLzXQCg4dgTV_YgaSbeTVzq-2ja_SQw4zi7LXwKL9cY,990
|
|
23
23
|
code_loader/inner_leap_binder/__init__.py,sha256=koOlJyMNYzGbEsoIbXathSmQ-L38N_pEXH_HvL7beXU,99
|
|
24
|
-
code_loader/inner_leap_binder/leapbinder.py,sha256=
|
|
24
|
+
code_loader/inner_leap_binder/leapbinder.py,sha256=cbw1zSAYeaRFTvcPPs5cNszs3LK8I-AiP9oJsK5A-pc,40494
|
|
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=V1GXbUwY1a8Cxo6AY1h2BLutzFPTLE7iLxX4wyMsVJQ,36498
|
|
27
27
|
code_loader/leaploaderbase.py,sha256=0JMwslRs6w7psIkj4pTjYHd_pSio3vt5H-X0Lar2nBI,6428
|
|
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.181.
|
|
36
|
-
code_loader-1.0.181.
|
|
37
|
-
code_loader-1.0.181.
|
|
38
|
-
code_loader-1.0.181.
|
|
35
|
+
code_loader-1.0.181.dev5.dist-info/LICENSE,sha256=qIwWjdspQeSMTtnFZBC8MuT-95L02FPvzRUdWFxrwJY,1067
|
|
36
|
+
code_loader-1.0.181.dev5.dist-info/METADATA,sha256=PS2dji6b9IWHKX0Ro16X_-4pX6zUNo00BDQ3GHF9C3k,1095
|
|
37
|
+
code_loader-1.0.181.dev5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
38
|
+
code_loader-1.0.181.dev5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|