code-loader 1.0.145__tar.gz → 1.0.146__tar.gz
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-1.0.145 → code_loader-1.0.146}/PKG-INFO +1 -1
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/inner_leap_binder/leapbinder_decorators.py +14 -5
- {code_loader-1.0.145 → code_loader-1.0.146}/pyproject.toml +1 -1
- {code_loader-1.0.145 → code_loader-1.0.146}/LICENSE +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/README.md +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/__init__.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/contract/__init__.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/contract/datasetclasses.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/contract/enums.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/contract/exceptions.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/contract/mapping.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/contract/responsedataclasses.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/contract/visualizer_classes.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/default_losses.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/default_metrics.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/__init__.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/api.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/cli_config_utils.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/client.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/epoch.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/experiment.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/experiment_context.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/types.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/utils.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/workingspace_config_utils.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/inner_leap_binder/__init__.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/inner_leap_binder/leapbinder.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/leaploader.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/leaploaderbase.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/mixpanel_tracker.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/plot_functions/__init__.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/plot_functions/plot_functions.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/plot_functions/visualize.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/utils.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/visualizers/__init__.py +0 -0
- {code_loader-1.0.145 → code_loader-1.0.146}/code_loader/visualizers/default_visualizers.py +0 -0
{code_loader-1.0.145 → code_loader-1.0.146}/code_loader/inner_leap_binder/leapbinder_decorators.py
RENAMED
|
@@ -197,10 +197,14 @@ def tensorleap_integration_test():
|
|
|
197
197
|
file_name = Path(first_tb.filename).name
|
|
198
198
|
line_number = first_tb.lineno
|
|
199
199
|
if isinstance(e, TypeError) and 'is not subscriptable' in str(e):
|
|
200
|
-
|
|
200
|
+
if not _call_from_tl_platform:
|
|
201
|
+
update_env_params_func("code_mapping", "v")
|
|
202
|
+
raise(f'Invalid integration code. File {file_name}, line {line_number}: '
|
|
201
203
|
f"indexing is supported only on the model's predictions inside the integration test. Please remove this indexing operation usage from the integration test code.")
|
|
202
204
|
else:
|
|
203
|
-
|
|
205
|
+
if not _call_from_tl_platform:
|
|
206
|
+
update_env_params_func("code_mapping", "v")
|
|
207
|
+
raise(f'Invalid integration code. File {file_name}, line {line_number}: '
|
|
204
208
|
f'Integration test is only allowed to call Tensorleap decorators. '
|
|
205
209
|
f'Ensure any arithmetics, external library use, Python logic is placed within Tensorleap decoders')
|
|
206
210
|
finally:
|
|
@@ -1456,7 +1460,7 @@ def tensorleap_status_table():
|
|
|
1456
1460
|
import traceback
|
|
1457
1461
|
CHECK = "✅"
|
|
1458
1462
|
CROSS = "❌"
|
|
1459
|
-
|
|
1463
|
+
code_mapping_failure=[0]
|
|
1460
1464
|
table = [
|
|
1461
1465
|
{"name": "tensorleap_preprocess", "Added to integration": CROSS},
|
|
1462
1466
|
{"name": "tensorleap_integration_test", "Added to integration": CROSS},
|
|
@@ -1482,6 +1486,7 @@ def tensorleap_status_table():
|
|
|
1482
1486
|
ready_mess = "\nAll parts have been successfully set. If no errors accured, you can now push the project to the Tensorleap system."
|
|
1483
1487
|
not_ready_mess = "\nSome mandatory components have not yet been added to the Integration test. Recommended next interface to add is: "
|
|
1484
1488
|
mandatory_ready_mess = "\nAll mandatory parts have been successfully set. If no errors accured, you can now push the project to the Tensorleap system or continue to the next optional reccomeded interface,adding: "
|
|
1489
|
+
code_mapping_failure_mes= "Tensorleap_integration_test code flow failed, check raised exception."
|
|
1485
1490
|
|
|
1486
1491
|
name_width = max(len(row["name"]) for row in table)
|
|
1487
1492
|
status_width = max(len(row["Added to integration"]) for row in table)
|
|
@@ -1496,13 +1501,17 @@ def tensorleap_status_table():
|
|
|
1496
1501
|
ready=False
|
|
1497
1502
|
next_step=row['name']
|
|
1498
1503
|
|
|
1499
|
-
|
|
1500
|
-
|
|
1504
|
+
if code_mapping_failure:
|
|
1505
|
+
print(f"\n{ CROSS + code_mapping_failure_mes}.")
|
|
1506
|
+
else:
|
|
1507
|
+
print(ready_mess) if ready else print(mandatory_ready_mess+next_step) if "optional" in next_step else print(not_ready_mess+next_step)
|
|
1501
1508
|
def update_env_params(name: str, status: str = "✓"):
|
|
1502
1509
|
for row in table:
|
|
1503
1510
|
if _remove_suffix(row["name"]," (optional)") == name:
|
|
1504
1511
|
row["Added to integration"] = CHECK if status=="v" else CROSS
|
|
1505
1512
|
break
|
|
1513
|
+
if name=="code_mapping":
|
|
1514
|
+
code_mapping_failure[0]=1
|
|
1506
1515
|
def run_on_exit():
|
|
1507
1516
|
if _finalizer_called["done"]:
|
|
1508
1517
|
return
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/experiment_context.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{code_loader-1.0.145 → code_loader-1.0.146}/code_loader/experiment_api/workingspace_config_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|