experimaestro 1.7.0rc3__py3-none-any.whl → 1.7.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.

Potentially problematic release.


This version of experimaestro might be problematic. Click here for more details.

@@ -1,4 +1,3 @@
1
- import imp
2
1
  import importlib
3
2
  import inspect
4
3
  import json
@@ -68,6 +67,12 @@ class ConfigurationLoader:
68
67
 
69
68
  with yaml_file.open("rt") as fp:
70
69
  _data = yaml.full_load(fp)
70
+
71
+ if "file" in _data:
72
+ path = Path(_data["file"])
73
+ if not path.is_absolute():
74
+ _data["file"] = str((yaml_file.parent / path).resolve())
75
+
71
76
  if parent := _data.get("parent", None):
72
77
  self.load(yaml_file.parent / parent)
73
78
 
@@ -193,7 +198,7 @@ def experiments_cli( # noqa: C901
193
198
  ), "Module name and experiment file are mutually exclusive options"
194
199
  xp_file = Path(xp_file)
195
200
  if not python_path:
196
- python_path.append(xp_file.parent)
201
+ python_path.append(xp_file.parent.absolute())
197
202
  logging.info(
198
203
  "Using python path: %s", ", ".join(str(s) for s in python_path)
199
204
  )
@@ -220,14 +225,12 @@ def experiments_cli( # noqa: C901
220
225
  if not xp_file.exists() and xp_file.suffix != ".py":
221
226
  xp_file = xp_file.with_suffix(".py")
222
227
  xp_file: Path = Path(yaml_file).parent / xp_file
223
- with open(xp_file) as src:
224
- module_name = xp_file.with_suffix("").name
225
- mod = imp.load_module(
226
- module_name,
227
- src,
228
- str(xp_file.absolute()),
229
- (".py", "r", imp.PY_SOURCE),
230
- )
228
+ module_name = xp_file.with_suffix("").name
229
+ spec = importlib.util.spec_from_file_location(
230
+ module_name, str(xp_file.absolute())
231
+ )
232
+ mod = importlib.util.module_from_spec(spec)
233
+ spec.loader.exec_module(mod)
231
234
  else:
232
235
  # Module
233
236
  try:
@@ -12,11 +12,8 @@ from sphinx import addnodes
12
12
  from sphinx.ext.autodoc import ClassDocumenter, Documenter, restify
13
13
  from sphinx.locale import _
14
14
  from sphinx.util import inspect, logging
15
- from sphinx.domains.python import (
16
- PyClasslike,
17
- PyAttribute,
18
- directives, # noqa: F401
19
- )
15
+ from sphinx.domains.python import PyClasslike, PyAttribute, directives
16
+ from sphinx.domains.python import PyObject # noqa: F401
20
17
  from sphinx.addnodes import desc_signature
21
18
  from sphinx.util.typing import OptionSpec
22
19
  from docutils.statemachine import StringList
@@ -63,9 +63,9 @@ while IFS= read -r line; do
63
63
  esac
64
64
  done < "$1"
65
65
 
66
+ cd "$chdir"
66
67
  echo "Starting $@ ${args[@]} > $stdout 2> $stderr" >&2
67
68
  (
68
- if test "$chdir"; then cd "$chdir"; fi
69
69
  export PATH="${CURDIR}/bin:$PATH"
70
70
  eval "$@" "${args[@]}"
71
71
  echo $? > "$XPM_SLURM_DIR/jobs/$$.status"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: experimaestro
3
- Version: 1.7.0rc3
3
+ Version: 1.7.1
4
4
  Summary: "Experimaestro is a computer science experiment manager"
5
5
  License: GPL-3
6
6
  Keywords: experiment manager
@@ -22,7 +22,7 @@ experimaestro/core/types.py,sha256=gSLv9F1HszVxI8jla6e-aVVS7q3KBwSzG1MImUHdGMg,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=fvHz2aih7Aw1DK3GoVkeaVtG3r1tU6qbnwIv-uD0eVI,8697
25
+ experimaestro/experiments/cli.py,sha256=u_s2fzkKj7sf3dOVREqslrb3PVO2vfFUjH3iTK8_lmA,8857
26
26
  experimaestro/experiments/configuration.py,sha256=cFDiUHnUGblJsctAUxAqx0jlM7_Ja_527lzk-4G-44k,1368
27
27
  experimaestro/generators.py,sha256=DQsEgdMwRUud9suWr-QGxI3vCO5sywP6MVGZWRNQXkk,1372
28
28
  experimaestro/huggingface.py,sha256=gnVlr6SZnbutYz4PLH0Q77n1TRF-uk-dR-3UFzFqAY0,2956
@@ -87,7 +87,7 @@ experimaestro/server/data/index.js.map,sha256=cv7KF28Uq5dy7Ux3yRnoSVztrOFVid359f
87
87
  experimaestro/server/data/login.html,sha256=4dvhSOn6DHp_tbmzqIKrqq2uAo0sAUbgLVD0lTnPp4s,511
88
88
  experimaestro/server/data/manifest.json,sha256=EpzHQZzrGh9c1Kf63nrqvI33H1cm0nLYfdh5lDm8ijI,318
89
89
  experimaestro/settings.py,sha256=U6gTVBL5Z4Rk0_7BAVoavVJKN2sQNRpspE-601Elfys,3170
90
- experimaestro/sphinx/__init__.py,sha256=xac4NmlxvciVONXfr3CChHH7AxZeAuQoC1MYL4Hwu3g,9440
90
+ experimaestro/sphinx/__init__.py,sha256=HAofa65lCLAUOShgWwJIGEEOPKzu4VEs5LZd46V_Bng,9466
91
91
  experimaestro/sphinx/static/experimaestro.css,sha256=0rEgt1LoDdD-a_R5rVfWZ19zD1gR-1L7q3f4UibIB58,294
92
92
  experimaestro/taskglobals.py,sha256=Lp0bqobVLndR7fOtF9qPI7utTKQXXwTdVN6l5Av9Dc4,660
93
93
  experimaestro/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -98,7 +98,7 @@ experimaestro/tests/connectors/utils.py,sha256=9sM3Pwy2nRfSr7pwQoOoSCDhBrEcDsEEl
98
98
  experimaestro/tests/definitions_types.py,sha256=nMoQxZxhTJAYV87Ce9F2dAITxXGHf7Uw5j-MKsZ3LmQ,399
99
99
  experimaestro/tests/launchers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
100
100
  experimaestro/tests/launchers/bin/sacct,sha256=9mmRAYCE4RBSBOf7aanhFw9hzujOUlcw3OJmZJ3K-Wc,639
101
- experimaestro/tests/launchers/bin/sbatch,sha256=MGzCDw6ywc973nMViPijwLzJcAW-ghJynMJA00h9AoQ,1746
101
+ experimaestro/tests/launchers/bin/sbatch,sha256=KgG4xUiIpELHBWLjnM7IUBu5jKiIGnILS9HfHE5eVFk,1715
102
102
  experimaestro/tests/launchers/bin/srun,sha256=3oE3qq0UFpVtTvXfR1kH3tovFYX74fp1Fk-o8zgsaJA,47
103
103
  experimaestro/tests/launchers/bin/test.py,sha256=MbxdAd2Sf7T-Hj3ldmrtngbQuBdNOkXjMcICJTf39wI,477
104
104
  experimaestro/tests/launchers/common.py,sha256=E09KhrQfNQNZbaeVkXBgHk2906DvaCEU7CqEQvLbZTE,2994
@@ -147,8 +147,8 @@ experimaestro/utils/jupyter.py,sha256=JcEo2yQK7x3Cr1tNl5FqGMZOICxCv9DwMvL5xsWdQP
147
147
  experimaestro/utils/resources.py,sha256=j-nvsTFwmgENMoVGOD2Ap-UD3WU85WkI0IgeSszMCX4,1328
148
148
  experimaestro/utils/settings.py,sha256=jpFMqF0DLL4_P1xGal0zVR5cOrdD8O0Y2IOYvnRgN3k,793
149
149
  experimaestro/xpmutils.py,sha256=S21eMbDYsHfvmZ1HmKpq5Pz5O-1HnCLYxKbyTBbASyQ,638
150
- experimaestro-1.7.0rc3.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
151
- experimaestro-1.7.0rc3.dist-info/METADATA,sha256=-fuyq-zQ7nqyCb4NJ0fbTWp5YTZKgFDk6o26noSDrJQ,6162
152
- experimaestro-1.7.0rc3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
153
- experimaestro-1.7.0rc3.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
154
- experimaestro-1.7.0rc3.dist-info/RECORD,,
150
+ experimaestro-1.7.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
151
+ experimaestro-1.7.1.dist-info/METADATA,sha256=8Z0vHJMLxWmtDlCrdC2FpQOobAtBIfqMHtQGgjmi7TU,6159
152
+ experimaestro-1.7.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
153
+ experimaestro-1.7.1.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
154
+ experimaestro-1.7.1.dist-info/RECORD,,