experimaestro 1.8.5__py3-none-any.whl → 1.8.6__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 experimaestro might be problematic. Click here for more details.
- experimaestro/core/context.py +1 -1
- experimaestro/core/serialization.py +3 -2
- {experimaestro-1.8.5.dist-info → experimaestro-1.8.6.dist-info}/METADATA +1 -1
- {experimaestro-1.8.5.dist-info → experimaestro-1.8.6.dist-info}/RECORD +7 -7
- {experimaestro-1.8.5.dist-info → experimaestro-1.8.6.dist-info}/LICENSE +0 -0
- {experimaestro-1.8.5.dist-info → experimaestro-1.8.6.dist-info}/WHEEL +0 -0
- {experimaestro-1.8.5.dist-info → experimaestro-1.8.6.dist-info}/entry_points.txt +0 -0
experimaestro/core/context.py
CHANGED
|
@@ -73,7 +73,7 @@ class SerializationContext:
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
class SerializedPathLoader(Protocol):
|
|
76
|
-
def __call__(path: Union[Path, str, SerializedPath]) -> Path:
|
|
76
|
+
def __call__(self, path: Union[Path, str, SerializedPath]) -> Path:
|
|
77
77
|
"""Get a filesystem path from a relative path
|
|
78
78
|
|
|
79
79
|
:param path: The relative path
|
|
@@ -66,7 +66,8 @@ def save(obj: Any, save_directory: Optional[Path]):
|
|
|
66
66
|
def get_data_loader(path: Union[str, Path, SerializedPathLoader]):
|
|
67
67
|
if path is None:
|
|
68
68
|
|
|
69
|
-
def data_loader():
|
|
69
|
+
def data_loader(_: Union[str, Path, SerializedPathLoader]):
|
|
70
|
+
# Just raise an exception
|
|
70
71
|
raise RuntimeError("No serialization path was given")
|
|
71
72
|
|
|
72
73
|
return data_loader
|
|
@@ -170,7 +171,7 @@ def deserialize(
|
|
|
170
171
|
with data_loader("definition.json").open("rt") as fh:
|
|
171
172
|
content = json.load(fh)
|
|
172
173
|
|
|
173
|
-
object, init_tasks = from_state_dict(content, as_instance=as_instance)
|
|
174
|
+
object, init_tasks = from_state_dict(content, data_loader, as_instance=as_instance)
|
|
174
175
|
|
|
175
176
|
if as_instance:
|
|
176
177
|
for init_task in init_tasks:
|
|
@@ -14,14 +14,14 @@ experimaestro/connectors/ssh.py,sha256=5giqvv1y0QQKF-GI0IFUzI_Z5H8Bj9EuL_Szpvk89
|
|
|
14
14
|
experimaestro/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
experimaestro/core/arguments.py,sha256=7hpkU1f8LJ7JL8kQaD514h9CFSfMotYLsVfMsMmdpWk,6487
|
|
16
16
|
experimaestro/core/callbacks.py,sha256=59JfeUgWcCCdIQ3pvh-xNnoRp9BX8f4iOAkgm16wBzE,1660
|
|
17
|
-
experimaestro/core/context.py,sha256=
|
|
17
|
+
experimaestro/core/context.py,sha256=1tLmX7WcgEKSbGw77vfziTzS8KNsoZJ02JBWMBCqqOk,2606
|
|
18
18
|
experimaestro/core/identifier.py,sha256=JadBAdW2fOIgoTyMRtKI_RY9SXQP2B1vq1rUcV465Hs,10214
|
|
19
19
|
experimaestro/core/objects/__init__.py,sha256=ucJY5e17QQ1Kc-GYXeL7g8GFj8rP0XB4g2vrl32uhxY,721
|
|
20
20
|
experimaestro/core/objects/config.py,sha256=qOUgCmX1NwhRhpTVxgr2sSAqBCMYloUXb5f-NiXgV8Q,56989
|
|
21
21
|
experimaestro/core/objects/config_utils.py,sha256=ZLECGkeIWdzunm8vwWsQhvcSgV1e064BgXbLiZnxSEM,1288
|
|
22
22
|
experimaestro/core/objects/config_walk.py,sha256=gyDMrVPbBMChn7r4em_gQXuqnxASO_JVauEbnJNO8II,4245
|
|
23
23
|
experimaestro/core/objects.pyi,sha256=xvlsRj4u1xsJxbevJl5Ner_HwmxR8x1JlAeIVDJzuy0,6498
|
|
24
|
-
experimaestro/core/serialization.py,sha256=
|
|
24
|
+
experimaestro/core/serialization.py,sha256=CSPEwOzlDsgAz6V2og-TgyU0RXDtzt_nXaoXFZleDZE,5775
|
|
25
25
|
experimaestro/core/serializers.py,sha256=R_CAMyjjfU1oi-eHU6VlEUixJpFayGqEPaYu7VsD9xA,1197
|
|
26
26
|
experimaestro/core/types.py,sha256=AH3ni1nIKGTeRmc7ECL6GH_dYqiuZp_mAN4E-JqdqnY,21741
|
|
27
27
|
experimaestro/core/utils.py,sha256=JfC3qGUS9b6FUHc2VxIYUI9ysNpXSQ1LjOBkjfZ8n7o,495
|
|
@@ -150,8 +150,8 @@ experimaestro/utils/jupyter.py,sha256=JcEo2yQK7x3Cr1tNl5FqGMZOICxCv9DwMvL5xsWdQP
|
|
|
150
150
|
experimaestro/utils/resources.py,sha256=j-nvsTFwmgENMoVGOD2Ap-UD3WU85WkI0IgeSszMCX4,1328
|
|
151
151
|
experimaestro/utils/settings.py,sha256=jpFMqF0DLL4_P1xGal0zVR5cOrdD8O0Y2IOYvnRgN3k,793
|
|
152
152
|
experimaestro/xpmutils.py,sha256=S21eMbDYsHfvmZ1HmKpq5Pz5O-1HnCLYxKbyTBbASyQ,638
|
|
153
|
-
experimaestro-1.8.
|
|
154
|
-
experimaestro-1.8.
|
|
155
|
-
experimaestro-1.8.
|
|
156
|
-
experimaestro-1.8.
|
|
157
|
-
experimaestro-1.8.
|
|
153
|
+
experimaestro-1.8.6.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
154
|
+
experimaestro-1.8.6.dist-info/METADATA,sha256=sax7u9-ePHwmRxVtxWYby9INQTgGwKaGxXu4yJ-m5iw,6170
|
|
155
|
+
experimaestro-1.8.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
156
|
+
experimaestro-1.8.6.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
|
|
157
|
+
experimaestro-1.8.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|