experimaestro 1.5.6__py3-none-any.whl → 1.5.8__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.

Files changed (31) hide show
  1. experimaestro/__main__.py +3 -423
  2. experimaestro/cli/__init__.py +312 -0
  3. experimaestro/{filter.py → cli/filter.py} +4 -4
  4. experimaestro/cli/jobs.py +251 -0
  5. experimaestro/connectors/ssh.py +2 -2
  6. experimaestro/core/objects.py +6 -3
  7. experimaestro/core/types.py +8 -3
  8. experimaestro/experiments/cli.py +20 -42
  9. experimaestro/launcherfinder/__init__.py +1 -1
  10. experimaestro/launcherfinder/base.py +2 -18
  11. experimaestro/launcherfinder/registry.py +22 -129
  12. experimaestro/launchers/direct.py +0 -47
  13. experimaestro/launchers/slurm/base.py +3 -1
  14. experimaestro/notifications.py +24 -8
  15. experimaestro/run.py +0 -1
  16. experimaestro/scheduler/base.py +0 -5
  17. experimaestro/settings.py +29 -1
  18. experimaestro/tests/launchers/config_slurm/launchers.py +25 -0
  19. experimaestro/tests/test_findlauncher.py +1 -1
  20. experimaestro/tests/test_tags.py +35 -0
  21. experimaestro/tokens.py +8 -8
  22. experimaestro/utils/resources.py +5 -1
  23. {experimaestro-1.5.6.dist-info → experimaestro-1.5.8.dist-info}/METADATA +1 -1
  24. {experimaestro-1.5.6.dist-info → experimaestro-1.5.8.dist-info}/RECORD +27 -28
  25. {experimaestro-1.5.6.dist-info → experimaestro-1.5.8.dist-info}/entry_points.txt +0 -4
  26. experimaestro/launchers/slurm/cli.py +0 -29
  27. experimaestro/launchers/slurm/configuration.py +0 -597
  28. experimaestro/tests/launchers/config_slurm/launchers.yaml +0 -134
  29. experimaestro/utils/yaml.py +0 -202
  30. {experimaestro-1.5.6.dist-info → experimaestro-1.5.8.dist-info}/LICENSE +0 -0
  31. {experimaestro-1.5.6.dist-info → experimaestro-1.5.8.dist-info}/WHEEL +0 -0
experimaestro/tokens.py CHANGED
@@ -1,10 +1,12 @@
1
- """Tokens are special types of dependency controlling the access to
1
+ """Tokens are special types of dependency controlling the access to
2
2
  a computational resource (e.g. number of launched jobs, etc.)
3
3
  """
4
4
 
5
5
  from dataclasses import dataclass
6
6
  import sys
7
7
  from pathlib import Path
8
+
9
+ from omegaconf import DictConfig
8
10
  from experimaestro.core.objects import Config
9
11
  import fasteners
10
12
  import threading
@@ -14,7 +16,6 @@ from typing import Dict
14
16
  from experimaestro.launcherfinder.base import TokenConfiguration
15
17
 
16
18
  from experimaestro.launcherfinder.registry import LauncherRegistry
17
- from experimaestro.utils.yaml import YAMLDict
18
19
 
19
20
  from .ipc import ipcom
20
21
  from .locking import Lock, LockError
@@ -87,7 +88,7 @@ class TokenFile:
87
88
  try:
88
89
  self.path = path
89
90
  with path.open("rt") as fp:
90
- count, self.uri = [l.strip() for l in fp.readlines()]
91
+ count, self.uri = [line.strip() for line in fp.readlines()]
91
92
  self.count = int(count)
92
93
  except Exception:
93
94
  logging.exception("Error while reading %s", self.path)
@@ -183,7 +184,10 @@ class CounterToken(Token, FileSystemEventHandler):
183
184
 
184
185
  @staticmethod
185
186
  def init_registry(registry: LauncherRegistry):
186
- registry.register_token("countertoken", CounterTokenConfiguration)
187
+ registry.register_token(
188
+ "countertoken",
189
+ DictConfig({}, key_type=str, element_type=CounterConfiguration),
190
+ )
187
191
 
188
192
  def __init__(self, name: str, path: Path, count: int, force=True):
189
193
  """[summary]
@@ -456,7 +460,3 @@ class CounterConfiguration(TokenConfiguration):
456
460
  from experimaestro.connectors.local import LocalConnector
457
461
 
458
462
  return LocalConnector.instance().createtoken(identifier, self.tokens)
459
-
460
-
461
- class CounterTokenConfiguration(YAMLDict[CounterConfiguration]):
462
- pass
@@ -1,11 +1,12 @@
1
1
  from contextlib import contextmanager
2
+ from os import PathLike
2
3
  from pathlib import Path
3
4
  from typing import Union
4
5
  from importlib import resources
5
6
  from experimaestro.compat import cached_property
6
7
 
7
8
 
8
- class ResourcePathWrapper:
9
+ class ResourcePathWrapper(PathLike):
9
10
  """Simple wrapper for resource path"""
10
11
 
11
12
  def __init__(self, path: Path):
@@ -30,6 +31,9 @@ class ResourcePathWrapper:
30
31
  def is_file(self):
31
32
  return resources.is_resource(self.package, self.name)
32
33
 
34
+ def __fspath__(self):
35
+ return resources.path(self.package, self.name).__fspath__()
36
+
33
37
  @contextmanager
34
38
  def open(self, *args, **kwargs):
35
39
  with resources.path(self.package, self.name) as path:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: experimaestro
3
- Version: 1.5.6
3
+ Version: 1.5.8
4
4
  Summary: "Experimaestro is a computer science experiment manager"
5
5
  Home-page: https://github.com/experimaestro/experimaestro-python
6
6
  License: GPL-3
@@ -1,42 +1,42 @@
1
1
  experimaestro/__init__.py,sha256=btjhjJa9TofgAYpMEw8SLpVH6G-5kSelxsInQdrIu30,1501
2
- experimaestro/__main__.py,sha256=iRi6yRJVcthXRTVnHQB0TNOKTRmKjdnX6yIQaf-z79o,13528
2
+ experimaestro/__main__.py,sha256=Dv9lFl03yt1dswd0Xb9NIJRgHpA5_IwH4RfQPEHyFz0,158
3
3
  experimaestro/annotations.py,sha256=dcpFmo01T12S_y5nIBIQjiXsGsq5S80ZB-58o8tW9wA,8450
4
4
  experimaestro/checkers.py,sha256=ZCMbnE_GFC5compWjt-fuHhPImi9fCPjImF8Ow9NqK8,696
5
+ experimaestro/cli/__init__.py,sha256=mzc-qqTFtZnFwCQl7IiwlYXEx08kLGwdntWayCerZ6E,9610
6
+ experimaestro/cli/filter.py,sha256=0jJrD_2cWydovjLO32vTFTK-TxXSs9P8Zxp5WaBF5AE,5790
7
+ experimaestro/cli/jobs.py,sha256=eWDZ2ObdySshDujFQdkmChxD9TS53270ckTXggGFXQc,7630
5
8
  experimaestro/click.py,sha256=6BkeQHEgcxaxzq3xEvEEzwzuBj5-dkfrpOGikuA8L00,1377
6
9
  experimaestro/commandline.py,sha256=NS1ubme8DTJtDS2uWwdHLQiZsl6TSK1LkNxu39c3-cw,9463
7
10
  experimaestro/compat.py,sha256=dQqE2ZNHLM2wtdfp7fBRYMfC33qNehVf9J6FGRBUQhs,171
8
11
  experimaestro/connectors/__init__.py,sha256=hxcBSeVLk_7oyiIlS3l-9dGg1NGtShwvRD1tS7f8D2M,5461
9
12
  experimaestro/connectors/local.py,sha256=6tlaZb0tvNS2mjsapiVbfY7kIfLICJad137VXBMz-xo,5816
10
- experimaestro/connectors/ssh.py,sha256=hmvU6bCq6ZsB1Zjz273mzb9pdZdTinUhUqZFJTZl8Fg,8290
13
+ experimaestro/connectors/ssh.py,sha256=88z0MYJl_K2jJTX5NBx4w5DJ_UGEbN40SPs2x9dfB-Q,8260
11
14
  experimaestro/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
15
  experimaestro/core/arguments.py,sha256=dW32opqNEsULYr6nR7Zk8PqHsSCbLPclfXofw27GTpI,5620
13
16
  experimaestro/core/context.py,sha256=Q8_ngiHRBZ0laavXRJNiDvdCprrnROVTWaHfrwMdlG4,2638
14
- experimaestro/core/objects.py,sha256=s9dt7U8LDT9XNVY7mowdt1DvuBH19EO4obips1ZBSHg,63989
17
+ experimaestro/core/objects.py,sha256=vTp_zjBJlYEhe0u55erJ5X-Lc8UuTb45NIFwfVZCPes,64142
15
18
  experimaestro/core/objects.pyi,sha256=Adi2OKCW0-B9GROlEUgxxBDK6SHUqccTBHTofRRJE9M,7131
16
19
  experimaestro/core/serialization.py,sha256=9tg5ebLF3YeZ_zG9DiTHPLthppvo7io710ohD_dcLTo,3836
17
20
  experimaestro/core/serializers.py,sha256=R_CAMyjjfU1oi-eHU6VlEUixJpFayGqEPaYu7VsD9xA,1197
18
- experimaestro/core/types.py,sha256=oTXD4UjMVoYn_Usxn2C4h6IGhYDTtekKB3O3hfeOynQ,20176
21
+ experimaestro/core/types.py,sha256=8alVqTA7aeIZ3FAaDux8IwoRPDbwVxzONVqnAL1A6QI,20308
19
22
  experimaestro/core/utils.py,sha256=JfC3qGUS9b6FUHc2VxIYUI9ysNpXSQ1LjOBkjfZ8n7o,495
20
23
  experimaestro/exceptions.py,sha256=cUy83WHM3GeynxmMk6QRr5xsnpqUAdAoc-m3KQVrE2o,44
21
24
  experimaestro/experiments/__init__.py,sha256=GcpDUIbCvhnv6rxFdAp4wTffCVNTv-InY6fbQAlTy-o,159
22
- experimaestro/experiments/cli.py,sha256=5G78YkzZtNU6ygcp_pRJQXYvsMWlguB9_M35-8W_Ors,7916
25
+ experimaestro/experiments/cli.py,sha256=tMMtfAkewj8jAPseXD1RBePBt10XWRItQ9TkKhV18yY,7228
23
26
  experimaestro/experiments/configuration.py,sha256=8GRqyLG1leF_NbvbFzqpm0yM24O0WjSNmQzvnuLnxxw,1150
24
- experimaestro/filter.py,sha256=DN1PrmS9yXoOa5Xnv001zbxzpdzvcVZFI9xZFKZ1-6g,5794
25
27
  experimaestro/generators.py,sha256=9NQ_TfDfASkArLnO4PF7s5Yoo9KWjlna2DCPzk5gJOI,1230
26
28
  experimaestro/huggingface.py,sha256=gnVlr6SZnbutYz4PLH0Q77n1TRF-uk-dR-3UFzFqAY0,2956
27
29
  experimaestro/ipc.py,sha256=ltYqybPm_XfcQC3yiskMfhfI_1dREs-XRu0F83YsNws,1490
28
- experimaestro/launcherfinder/__init__.py,sha256=jIeT9uRKsIjUv-oyKt0MhFzXJJrSdpJKwM2vL9Sk5YY,294
29
- experimaestro/launcherfinder/base.py,sha256=NptPJ0e8CktdhOPejocSfI_B4mloeH_EmJrbXruUCSA,1020
30
+ experimaestro/launcherfinder/__init__.py,sha256=qRUDyv3B9UsAM8Q31mRrZrTZox0AptwdmOY4f2K-TUo,279
31
+ experimaestro/launcherfinder/base.py,sha256=q47SsF_cXdo5O6ZhFKn5385WVFcx8Wd-BcEpd6tRpbs,515
30
32
  experimaestro/launcherfinder/parser.py,sha256=pYbfEJw7osnqZWm7fkVhQawhpNU8dLU_6vEjtXdc8E8,2279
31
- experimaestro/launcherfinder/registry.py,sha256=OG_nQEn9gH38qsfItj1yYTySf_ShcXpS93Up9GmyONQ,8925
33
+ experimaestro/launcherfinder/registry.py,sha256=ZpN0fm7MbweSH4cqpgW0jZpsLTQCKTkK6feqENrkvd8,5756
32
34
  experimaestro/launcherfinder/specs.py,sha256=G8za6mEmkVxuZY_ab3OhWJIpONpcBMO_iXeB30sUbhI,6448
33
35
  experimaestro/launchers/__init__.py,sha256=lXn544sgJExr6uirILWzAXu_IfmfyqFZOt4OzRnjHXg,2525
34
- experimaestro/launchers/direct.py,sha256=VJzQNrUGnh-1Ovt6uw4yYIjXNu45QpR-_6V45lcZAfQ,1967
36
+ experimaestro/launchers/direct.py,sha256=JZh6WOPnO6ED_xlOs8pL4MRFmnRhmXzpVxTl-ByaD2A,258
35
37
  experimaestro/launchers/oar.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
38
  experimaestro/launchers/slurm/__init__.py,sha256=R1Zwd4phZaXV8FwCYhzfB44n0V4cf-hBQzOc6NkFQ0s,41
37
- experimaestro/launchers/slurm/base.py,sha256=nMoSBMbA901OcneSHVXj8PXGqfv4mVN5G-NPDZ0HXO0,14135
38
- experimaestro/launchers/slurm/cli.py,sha256=c-S0TImvhZ-ZxFs5-5T2GRDm5manRYRiYudpQLHwsrQ,818
39
- experimaestro/launchers/slurm/configuration.py,sha256=mtozeuvIZmEfHlvEylwCgBrlVRFHT_jWNAKVxR4Tz1E,19357
39
+ experimaestro/launchers/slurm/base.py,sha256=syIC8Frfz-kWhpYkmPTfMjrskx7_bzvmRMQJ40lkF50,14185
40
40
  experimaestro/locking.py,sha256=hPT-LuDGZTijpbme8O0kEoB9a3WjdVzI2h31OT44UxE,1477
41
41
  experimaestro/mkdocs/__init__.py,sha256=u3AT-uBu3PqyZZXBr6U_ffioEoSZngDdw85005DbyDA,34
42
42
  experimaestro/mkdocs/annotations.py,sha256=qpDw8lzrxpsOShXcpcP_LAeR3UhiIXAybG8UvS64-OU,263
@@ -44,12 +44,12 @@ experimaestro/mkdocs/base.py,sha256=SwLh9s7BZfrTAZdBaealSqVeLAroDSwLLMOHmLCxMPQ,
44
44
  experimaestro/mkdocs/metaloader.py,sha256=qCqnTWhlgxql-oe46E8AbvYdoM311-lQh-msmPnbllQ,1481
45
45
  experimaestro/mkdocs/style.css,sha256=42kJ6Ozq_n4Iw5UfJ4-nO1u-HN3ELvV7Vhvj1Xkn7rQ,66
46
46
  experimaestro/mypy.py,sha256=M39VFuDrab-ymlCDIF5jys9oKpTwnuBPzb1T8Un5J3s,285
47
- experimaestro/notifications.py,sha256=936tdH_KYJYBvPVu-ii4Sn_nso_TTs5GqAfO1FDYRgc,8710
47
+ experimaestro/notifications.py,sha256=AiRFoew16Z8E0Pz9dswodOfkY5mFc5zglVPH6LqgQE4,9257
48
48
  experimaestro/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  experimaestro/rpyc.py,sha256=ZRKol-3tVoeoUITLNFenLF4dhWBLW_FvSV_GvsypmeI,3605
50
- experimaestro/run.py,sha256=pRTj7R7N0Tzm1lAjeWyn-ewM0kNFmpU0so8Yhv0BIYs,5294
50
+ experimaestro/run.py,sha256=NTFORDb_RlEK6tWKa7K-_2_bGCdHzzjBJVH5C1ReYtw,5222
51
51
  experimaestro/scheduler/__init__.py,sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY,20
52
- experimaestro/scheduler/base.py,sha256=8fwQEBkstnBFtioJ33xD5O0iJQTNltzA2RniSTi0f-4,32120
52
+ experimaestro/scheduler/base.py,sha256=jXjep3VS5cRCjCj6vCxp4t1fGVyqQW2JQNnLp6HKmLQ,31941
53
53
  experimaestro/scheduler/dependencies.py,sha256=n9XegwrmjayOIxt3xhuTEBVEBGSq4oeVdzz-FviDGXo,1994
54
54
  experimaestro/scheduler/services.py,sha256=aCKkNZMULlceabqf-kOs_-C7KPINnjU3Q-I00o5x6iY,2189
55
55
  experimaestro/scheduler/workspace.py,sha256=vyVbYZML28zvmgxfWc2PsKKHGlrAejY43UYlttbm9AU,2280
@@ -79,7 +79,7 @@ experimaestro/server/data/index.js,sha256=f0GvRsfsQ4ayP4en7Q-raZ6buwRXLCswCbzVax
79
79
  experimaestro/server/data/index.js.map,sha256=za3MUIjzyyGRI6F5KuBFMTgrFU55xgt0LBrw-4YPHag,3904832
80
80
  experimaestro/server/data/login.html,sha256=4dvhSOn6DHp_tbmzqIKrqq2uAo0sAUbgLVD0lTnPp4s,511
81
81
  experimaestro/server/data/manifest.json,sha256=EpzHQZzrGh9c1Kf63nrqvI33H1cm0nLYfdh5lDm8ijI,318
82
- experimaestro/settings.py,sha256=Sh-OefrMEtuJJA9tRe8TiS9-BIy0b41HmHXkf1cLLzM,2181
82
+ experimaestro/settings.py,sha256=UsfKIA4Jx-32hm3xGjBs_b9uvw8M7sOYtzFyUsYSJ8s,3145
83
83
  experimaestro/sphinx/__init__.py,sha256=heovvtwbYToZM-b6HNi4pJdBoo_97usdEawhMGSK3bk,9560
84
84
  experimaestro/sphinx/static/experimaestro.css,sha256=0rEgt1LoDdD-a_R5rVfWZ19zD1gR-1L7q3f4UibIB58,294
85
85
  experimaestro/taskglobals.py,sha256=aBjPpo4HQp6E6M3GQ8L6PR4rK2Lu0kD5dS1WjnaGgDc,499
@@ -95,7 +95,7 @@ experimaestro/tests/launchers/bin/sbatch,sha256=gQvJEzCz4OCPeLCElaD6tmbPeoLuGLlk
95
95
  experimaestro/tests/launchers/bin/test.py,sha256=MbxdAd2Sf7T-Hj3ldmrtngbQuBdNOkXjMcICJTf39wI,477
96
96
  experimaestro/tests/launchers/common.py,sha256=TAFDodyp36T8OaiUwxCv06gzbGYacKiD3sA6UekCfpk,2468
97
97
  experimaestro/tests/launchers/config_slurm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
98
- experimaestro/tests/launchers/config_slurm/launchers.yaml,sha256=yb6gHNIguntCt2b4pwTZZ5xQHgXlUwnDNRvOIUd-tkk,2497
98
+ experimaestro/tests/launchers/config_slurm/launchers.py,sha256=DohwQVv1eXWfDpAYFg7KJekEm7q7G-lMou2lPg-PKOk,838
99
99
  experimaestro/tests/launchers/test_local.py,sha256=4oGgWH2YgkEm-Muu6s4cwlgriXtYr5xAd72DVoIw_Yk,717
100
100
  experimaestro/tests/launchers/test_slurm.py,sha256=5s-mMtqvE62xJ_GijLd4Hmsu3vWCRCbFy7cPce8YKsM,2534
101
101
  experimaestro/tests/restart.py,sha256=pYX5Tp6KaIYmSK8iqv-j98pbmExo-f9U3jdbW35PfW4,4016
@@ -108,7 +108,7 @@ experimaestro/tests/tasks/all.py,sha256=hrI2CDyeaYrp2IPzXWif-Uu1Uirkndmuih3Jj09C
108
108
  experimaestro/tests/tasks/foreign.py,sha256=7IAF525mmMORxSPKQmU1z1B84XPmwsO8PGdxBvYknwU,153
109
109
  experimaestro/tests/test_checkers.py,sha256=Kg5frDNRE3pvWVmmYzyk0tJFNO885KOrK48lSu-NlYA,403
110
110
  experimaestro/tests/test_dependencies.py,sha256=xfWrSkvjT45G4FSCL535m1huLT2ghmyW7kvP_XvvCJQ,2005
111
- experimaestro/tests/test_findlauncher.py,sha256=r34dci01FK9YpjtTHR9fIQ7AMHaMXQOrWtarytcf_Us,2967
111
+ experimaestro/tests/test_findlauncher.py,sha256=8tjpR8bLMi6Gjs7KpY2t64izZso6bmY7vIivMflm-Bc,2965
112
112
  experimaestro/tests/test_forward.py,sha256=XkZ2iOPETVj-kbTyniOQU9gyHXdfvn89GTwpMq9J6qc,780
113
113
  experimaestro/tests/test_identifier.py,sha256=fnl7jCUAg86npRrS3yeXtb9JysSKhs5czgFzW9yJ9Q8,13397
114
114
  experimaestro/tests/test_instance.py,sha256=awIIMnhiec_qDO6jZBqWDR13ReTzh3arK_60QDY6TLQ,1540
@@ -119,14 +119,14 @@ experimaestro/tests/test_progress.py,sha256=wtIGQzlV3ldd_wMng11LinVESchW-1J954mC
119
119
  experimaestro/tests/test_serializers.py,sha256=xSCezAM9yH_Ix1wr7j0au9SyBv9DtZ7b0zs2-Ynt-VM,2338
120
120
  experimaestro/tests/test_snippets.py,sha256=rojnyDjtmAMnSuDUj6Bv9XEgdP8oQf2nVc132JF8vsM,3081
121
121
  experimaestro/tests/test_ssh.py,sha256=JhwsS4lJWQeMhtnDfJhQqJ5dwEThqvcNBBgUq1EWvk0,979
122
- experimaestro/tests/test_tags.py,sha256=kanKx0TOpS7vNs5jOs-J8IuZjyUJ9zMJl2V8dfOh4Lo,1975
122
+ experimaestro/tests/test_tags.py,sha256=vfW99iFfw3m-pcJPy_-mtZsWbAt_Xw5k-u3dWoJbRWw,2921
123
123
  experimaestro/tests/test_tasks.py,sha256=bUSB_UT1MTN2P_RPHd4AT5NK-DFsgCVeFKSiXu3bEz8,9429
124
124
  experimaestro/tests/test_tokens.py,sha256=cW9qQU4PhbQY4_SgK8ICmKcYq8JVvLRTOYZzdtoS5N8,7826
125
125
  experimaestro/tests/test_types.py,sha256=2BbdB4o_2HvFkyhiQ2X3oHM49xcck-phT873NF-p8lA,1257
126
126
  experimaestro/tests/test_validation.py,sha256=ziETaISLnpnAgNz8LRnxOOJzbNUT6PjW5G5IxYOhSnU,4339
127
127
  experimaestro/tests/token_reschedule.py,sha256=V8lAbjTWTatBrBjxde_KN-fDEI4sQ3HNr4scCXBU6fI,1701
128
128
  experimaestro/tests/utils.py,sha256=41krZFgUaCxCYBQPmo5dNFDd9W6RU8ZzzyzY3FyutUI,3805
129
- experimaestro/tokens.py,sha256=aHT6lN4YLF0ujXl0nNu1sSSx-2ebrYiZFfrFvvmsQ1s,14681
129
+ experimaestro/tokens.py,sha256=AvFDPy42rFhv3wSmcrI-MNhIQqgaPtvjM7SjbVorC04,14671
130
130
  experimaestro/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
131
131
  experimaestro/tools/diff.py,sha256=FBCwupPrSwkEOcqYu0NWe7LTkuOW6r-_btoCel2_k_I,3436
132
132
  experimaestro/tools/documentation.py,sha256=O2UzjzodPqGot3YSe6NYlK7S42XpplakUdqxFpvjqHQ,9184
@@ -136,12 +136,11 @@ experimaestro/utils/__init__.py,sha256=BdYguxAbR1jOQPV36OgGA31itaMvBJ6WVPV6b4Jn4
136
136
  experimaestro/utils/asyncio.py,sha256=zEQQqZW6uHGnFknp_udt9WjjtqLNNMWun9TPL6FOF64,601
137
137
  experimaestro/utils/jobs.py,sha256=42FAdKcn_v_-M6hcQZPUBr9kbDt1eVsk3a4E8Gc4eu8,2394
138
138
  experimaestro/utils/jupyter.py,sha256=JcEo2yQK7x3Cr1tNl5FqGMZOICxCv9DwMvL5xsWdQPk,2183
139
- experimaestro/utils/resources.py,sha256=gDjkrRjo7GULWyXmNXm_u1uqzEIAoAvJydICk56nOQw,1006
139
+ experimaestro/utils/resources.py,sha256=MaCQL9dLfze3lwyuBVeWF7Ki5fFSE1F0BGWrfaaHi1I,1135
140
140
  experimaestro/utils/settings.py,sha256=jpFMqF0DLL4_P1xGal0zVR5cOrdD8O0Y2IOYvnRgN3k,793
141
- experimaestro/utils/yaml.py,sha256=jEjqXqUtJ333wNUdIc0o3LGvdsTQ9AKW9a9CCd-bmGU,6766
142
141
  experimaestro/xpmutils.py,sha256=S21eMbDYsHfvmZ1HmKpq5Pz5O-1HnCLYxKbyTBbASyQ,638
143
- experimaestro-1.5.6.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
144
- experimaestro-1.5.6.dist-info/METADATA,sha256=X50UbV1oT6bEWSCm2wrLxPcIi-wO90GUC2zd8eg8JLY,6265
145
- experimaestro-1.5.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
146
- experimaestro-1.5.6.dist-info/entry_points.txt,sha256=PhaEili_fDgn5q7rBJGip_uhGkRBq5l3Yuhg91zkcbk,574
147
- experimaestro-1.5.6.dist-info/RECORD,,
142
+ experimaestro-1.5.8.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
143
+ experimaestro-1.5.8.dist-info/METADATA,sha256=kPnVB4v19GLGlmLoehU2S78yQrpanMrB2QFaTlxuonw,6265
144
+ experimaestro-1.5.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
145
+ experimaestro-1.5.8.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
146
+ experimaestro-1.5.8.dist-info/RECORD,,
@@ -5,10 +5,6 @@ experimaestro=experimaestro.__main__:main
5
5
  local=experimaestro.connectors.local:LocalConnector
6
6
  ssh=experimaestro.connectors.ssh:SshConnector
7
7
 
8
- [experimaestro.launchers]
9
- slurm=experimaestro.launchers.slurm:SlurmLauncher
10
- unix=experimaestro.launchers.direct:DirectLauncher
11
-
12
8
  [experimaestro.process]
13
9
  local=experimaestro.connectors.local:LocalProcess
14
10
  slurm=experimaestro.launchers.slurm:BatchSlurmProcess
@@ -1,29 +0,0 @@
1
- import sys
2
- import click
3
-
4
- from .configuration import SlurmConfiguration, fill_nodes_configuration
5
-
6
-
7
- @click.group()
8
- def cli():
9
- pass
10
-
11
-
12
- @click.option("--no-hosts", is_flag=True, help="Disable hosts")
13
- @cli.command()
14
- def convert(no_hosts):
15
- """Convert the ouptut of 'scontrol show node' into a YAML form compatible
16
- with launchers.yaml"""
17
- import yaml
18
- from experimaestro.launcherfinder import LauncherRegistry
19
-
20
- configuration = SlurmConfiguration(id="", partitions={})
21
- fill_nodes_configuration(sys.stdin, configuration)
22
-
23
- if no_hosts:
24
- for pid, partition in configuration.partitions.items():
25
- for node in partition.nodes:
26
- node.hosts = []
27
- configuration.use_hosts = False
28
-
29
- yaml.dump(configuration, sys.stdout, Dumper=LauncherRegistry.instance().Dumper)