oh-my-batch 0.4.4__py3-none-any.whl → 0.4.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.
- oh_my_batch/batch.py +0 -3
- {oh_my_batch-0.4.4.dist-info → oh_my_batch-0.4.6.dist-info}/METADATA +4 -6
- {oh_my_batch-0.4.4.dist-info → oh_my_batch-0.4.6.dist-info}/RECORD +6 -6
- {oh_my_batch-0.4.4.dist-info → oh_my_batch-0.4.6.dist-info}/WHEEL +1 -1
- {oh_my_batch-0.4.4.dist-info → oh_my_batch-0.4.6.dist-info}/LICENSE +0 -0
- {oh_my_batch-0.4.4.dist-info → oh_my_batch-0.4.6.dist-info}/entry_points.txt +0 -0
oh_my_batch/batch.py
CHANGED
@@ -86,9 +86,6 @@ class BatchMaker:
|
|
86
86
|
:param path: Path to save batch script files, use {i} to represent index
|
87
87
|
:param concurrency: Number of scripts to to make
|
88
88
|
"""
|
89
|
-
# inject pre-defined functions
|
90
|
-
self.add_header_files(get_asset('functions.sh'))
|
91
|
-
|
92
89
|
header = '\n'.join(self._script_header)
|
93
90
|
bottom = '\n'.join(self._script_bottom)
|
94
91
|
for i, work_dirs in enumerate(split_list(self._work_dirs, concurrency)):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: oh-my-batch
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.6
|
4
4
|
Summary:
|
5
5
|
License: GPL
|
6
6
|
Author: weihong.xu
|
@@ -13,7 +13,8 @@ Classifier: Programming Language :: Python :: 3.9
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
16
|
-
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
17
|
+
Requires-Dist: fire (>=0.5.0,<0.6.0)
|
17
18
|
Description-Content-Type: text/markdown
|
18
19
|
|
19
20
|
# oh-my-batch
|
@@ -120,15 +121,12 @@ EOF
|
|
120
121
|
omb batch \
|
121
122
|
add_work_dirs tmp/tasks/* - \
|
122
123
|
add_header_files tmp/lammps_header.sh - \
|
123
|
-
add_cmds "
|
124
|
+
add_cmds "./run.sh" - \
|
124
125
|
make tmp/lmp-{i}.slurm --concurrency 2
|
125
126
|
```
|
126
127
|
|
127
128
|
You will find batch scripts `tmp/lmp-0.slurm` and `tmp/lmp-1.slurm` in `tmp` directory.
|
128
129
|
|
129
|
-
`omb batch` will provide some useful functions in the batch script.
|
130
|
-
For example, `checkpoint` will check if the job is done and skip the job if it's done.
|
131
|
-
|
132
130
|
You can run the above script by `./examples/omb-batch.sh`,
|
133
131
|
|
134
132
|
### Track the state of job in job schedular
|
@@ -2,14 +2,14 @@ oh_my_batch/__init__.py,sha256=BsRNxZbqDWfaIZJGxzIDqCubRWztMGFDceW08TECuFs,98
|
|
2
2
|
oh_my_batch/__main__.py,sha256=sWyFZMwWNvhkanwZSJRGfBBDoIevhC028dTSB67i6yI,61
|
3
3
|
oh_my_batch/assets/__init__.py,sha256=Exub46UbQaz2V2eXpQeiVfnThQpXaNeuyjlGY6gBSZc,130
|
4
4
|
oh_my_batch/assets/functions.sh,sha256=LaiavZBu84D7C1r-dWhf91vPTuHXCMV1DQZUIPVQnjE,1001
|
5
|
-
oh_my_batch/batch.py,sha256=
|
5
|
+
oh_my_batch/batch.py,sha256=o4G7AlaBOUNtwCWfO5bGnPA-iWhhq_iJxpALy1oIYb8,3593
|
6
6
|
oh_my_batch/cli.py,sha256=Jyz8q2pUYke3mfJS6F_G9S9hApddgXxQw1BsN6Kfkjc,553
|
7
7
|
oh_my_batch/combo.py,sha256=A5flYsjugcelj105P6Nq4M3kNGtdqh3c7QaSIL3hUcg,9954
|
8
8
|
oh_my_batch/job.py,sha256=Uk0E-WxnexBu9wuUV3uc1aAwVF_5rWdNdLEOB8Y9B-U,6252
|
9
9
|
oh_my_batch/misc.py,sha256=G_iOovRCrShBJJCc82QLN0CvMqW4adOefEoY1GedEiw,452
|
10
10
|
oh_my_batch/util.py,sha256=5ve2QcviuF0UHFLrsXmjMTj0ogXJ4g05q1y-yWCFuOk,2409
|
11
|
-
oh_my_batch-0.4.
|
12
|
-
oh_my_batch-0.4.
|
13
|
-
oh_my_batch-0.4.
|
14
|
-
oh_my_batch-0.4.
|
15
|
-
oh_my_batch-0.4.
|
11
|
+
oh_my_batch-0.4.6.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
12
|
+
oh_my_batch-0.4.6.dist-info/METADATA,sha256=R1N1dVmh-00kRGAnWVVHtXn1WbKwOMer4GuDnM3mkRA,5384
|
13
|
+
oh_my_batch-0.4.6.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
14
|
+
oh_my_batch-0.4.6.dist-info/entry_points.txt,sha256=ZY2GutSoNjjSyJ4qO2pTeseKUFgoTYdvmgkuZZkwi68,77
|
15
|
+
oh_my_batch-0.4.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|