experimaestro 1.6.0__py3-none-any.whl → 1.6.1__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.
- experimaestro/core/objects.py +8 -2
- experimaestro/experiments/cli.py +21 -23
- {experimaestro-1.6.0.dist-info → experimaestro-1.6.1.dist-info}/METADATA +1 -1
- {experimaestro-1.6.0.dist-info → experimaestro-1.6.1.dist-info}/RECORD +7 -7
- {experimaestro-1.6.0.dist-info → experimaestro-1.6.1.dist-info}/LICENSE +0 -0
- {experimaestro-1.6.0.dist-info → experimaestro-1.6.1.dist-info}/WHEEL +0 -0
- {experimaestro-1.6.0.dist-info → experimaestro-1.6.1.dist-info}/entry_points.txt +0 -0
experimaestro/core/objects.py
CHANGED
|
@@ -1340,8 +1340,14 @@ class ConfigInformation:
|
|
|
1340
1340
|
sys.modules[module_name] = mod
|
|
1341
1341
|
spec.loader.exec_module(mod)
|
|
1342
1342
|
else:
|
|
1343
|
-
|
|
1344
|
-
|
|
1343
|
+
try:
|
|
1344
|
+
logger.debug("Importing module %s", definition["module"])
|
|
1345
|
+
mod = importlib.import_module(module_name)
|
|
1346
|
+
except ModuleNotFoundError:
|
|
1347
|
+
# More hints on the nature of the error
|
|
1348
|
+
logging.warning("(1) Either the python path is wrong – %s", ":".join(sys.path))
|
|
1349
|
+
logging.warning("(2) There is not __init__.py in your module")
|
|
1350
|
+
raise
|
|
1345
1351
|
|
|
1346
1352
|
cls = getqualattr(mod, definition["type"])
|
|
1347
1353
|
|
experimaestro/experiments/cli.py
CHANGED
|
@@ -208,29 +208,27 @@ def experiments_cli( # noqa: C901
|
|
|
208
208
|
|
|
209
209
|
# --- Finds the "run" function
|
|
210
210
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
finally:
|
|
233
|
-
pass
|
|
211
|
+
# Modifies the Python path
|
|
212
|
+
for path in pythonpath:
|
|
213
|
+
sys.path.append(str(path))
|
|
214
|
+
|
|
215
|
+
if xp_file:
|
|
216
|
+
if not xp_file.exists() and xp_file.suffix != ".py":
|
|
217
|
+
xp_file = xp_file.with_suffix(".py")
|
|
218
|
+
xp_file: Path = Path(yaml_file).parent / xp_file
|
|
219
|
+
with open(xp_file) as src:
|
|
220
|
+
module_name = xp_file.with_suffix("").name
|
|
221
|
+
mod = imp.load_module(
|
|
222
|
+
module_name,
|
|
223
|
+
src,
|
|
224
|
+
str(xp_file.absolute()),
|
|
225
|
+
(".py", "r", imp.PY_SOURCE),
|
|
226
|
+
)
|
|
227
|
+
else:
|
|
228
|
+
# Module
|
|
229
|
+
mod = importlib.import_module(module_name)
|
|
230
|
+
|
|
231
|
+
helper = getattr(mod, "run", None)
|
|
234
232
|
|
|
235
233
|
# --- ... and runs it
|
|
236
234
|
if helper is None:
|
|
@@ -14,7 +14,7 @@ experimaestro/connectors/ssh.py,sha256=P6XfCdC4mQTsFzgI-dEdx6AdVhwd0T6VrQpPmNpmi
|
|
|
14
14
|
experimaestro/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
experimaestro/core/arguments.py,sha256=dW32opqNEsULYr6nR7Zk8PqHsSCbLPclfXofw27GTpI,5620
|
|
16
16
|
experimaestro/core/context.py,sha256=Q8_ngiHRBZ0laavXRJNiDvdCprrnROVTWaHfrwMdlG4,2638
|
|
17
|
-
experimaestro/core/objects.py,sha256=
|
|
17
|
+
experimaestro/core/objects.py,sha256=Oh9S85enB_cuQhFxZqwNoJMcrbuPoESdTdEDcO4tAqM,64649
|
|
18
18
|
experimaestro/core/objects.pyi,sha256=Adi2OKCW0-B9GROlEUgxxBDK6SHUqccTBHTofRRJE9M,7131
|
|
19
19
|
experimaestro/core/serialization.py,sha256=9tg5ebLF3YeZ_zG9DiTHPLthppvo7io710ohD_dcLTo,3836
|
|
20
20
|
experimaestro/core/serializers.py,sha256=R_CAMyjjfU1oi-eHU6VlEUixJpFayGqEPaYu7VsD9xA,1197
|
|
@@ -22,7 +22,7 @@ experimaestro/core/types.py,sha256=8alVqTA7aeIZ3FAaDux8IwoRPDbwVxzONVqnAL1A6QI,2
|
|
|
22
22
|
experimaestro/core/utils.py,sha256=JfC3qGUS9b6FUHc2VxIYUI9ysNpXSQ1LjOBkjfZ8n7o,495
|
|
23
23
|
experimaestro/exceptions.py,sha256=cUy83WHM3GeynxmMk6QRr5xsnpqUAdAoc-m3KQVrE2o,44
|
|
24
24
|
experimaestro/experiments/__init__.py,sha256=GcpDUIbCvhnv6rxFdAp4wTffCVNTv-InY6fbQAlTy-o,159
|
|
25
|
-
experimaestro/experiments/cli.py,sha256=
|
|
25
|
+
experimaestro/experiments/cli.py,sha256=AS6LcbY3O8tkQ8X-ushZcRVdLt1WbykwGP8CZ2BfgMw,8371
|
|
26
26
|
experimaestro/experiments/configuration.py,sha256=cFDiUHnUGblJsctAUxAqx0jlM7_Ja_527lzk-4G-44k,1368
|
|
27
27
|
experimaestro/generators.py,sha256=9NQ_TfDfASkArLnO4PF7s5Yoo9KWjlna2DCPzk5gJOI,1230
|
|
28
28
|
experimaestro/huggingface.py,sha256=gnVlr6SZnbutYz4PLH0Q77n1TRF-uk-dR-3UFzFqAY0,2956
|
|
@@ -115,8 +115,8 @@ experimaestro/utils/jupyter.py,sha256=JcEo2yQK7x3Cr1tNl5FqGMZOICxCv9DwMvL5xsWdQP
|
|
|
115
115
|
experimaestro/utils/resources.py,sha256=MaCQL9dLfze3lwyuBVeWF7Ki5fFSE1F0BGWrfaaHi1I,1135
|
|
116
116
|
experimaestro/utils/settings.py,sha256=jpFMqF0DLL4_P1xGal0zVR5cOrdD8O0Y2IOYvnRgN3k,793
|
|
117
117
|
experimaestro/xpmutils.py,sha256=S21eMbDYsHfvmZ1HmKpq5Pz5O-1HnCLYxKbyTBbASyQ,638
|
|
118
|
-
experimaestro-1.6.
|
|
119
|
-
experimaestro-1.6.
|
|
120
|
-
experimaestro-1.6.
|
|
121
|
-
experimaestro-1.6.
|
|
122
|
-
experimaestro-1.6.
|
|
118
|
+
experimaestro-1.6.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
119
|
+
experimaestro-1.6.1.dist-info/METADATA,sha256=23LdSFk3UzGvwsUqh3GLk_g-VTqZ_qvJa6SAYHXDGiI,6220
|
|
120
|
+
experimaestro-1.6.1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
121
|
+
experimaestro-1.6.1.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
|
|
122
|
+
experimaestro-1.6.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|