Description
This project has utilities meant to be used in IHEP. They are site-specific and not useful for anyone outside IHEP.
Submit jobs from lists of commands
One can submit jobs to the cluster by doing:
job_run_commands -f jobs.txt -e my_env
where jobs.txt is a file with the commands to be ran, one per job, e.g.:
run_calculation -i 0
run_calculation -i 1
run_calculation -i 2
run_calculation -i 3
would run in parallel run_calculation for different arguments. The flag -e
specifies the virtual environment where this needs to be executed.
Modify memory from jobs that are held
To modify the amount of memory used by the held jobs and release them do:
jmanager -m 8000 -t 0
-t 1 will do a test run.
Job sumission
To submit arrays of jobs to HTCondor in IHEP do:
from ihep_utilities import JobSubmitter
d_job = {
'j1' : ['echo 1', 'echo 2', 'echo 3'],
'j2' : ['echo a', 'echo b', 'echo c'],
}
sbt = JobSubmitter(jobs=d_job, environment='None')
sbt.run(skip_submit=False)
Where
- The
j1,j2, etc can be replaced with the user's commands environmentis the user's conda environment where this will runskip_submitcan beTruefor dry runs.
The outputs will go to:
/publicfs/ucas/user/campoverde/Jobs/run_commands
but this can be changed with JobsSubmitter._log_root
Metadata
Release files for ihep-utilities 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ihep_utilities-0.0.3.tar.gz | 6.1 kB | Without provenance | Details for ihep_utilities-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ihep_utilities-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for ihep_utilities-0.0.3-py3-none-any.whl |
Total release size: 14.8 kB
Release files / ihep_utilities-0.0.3.tar.gz
| Download URL | ihep_utilities-0.0.3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be6d0b7cb536315581deca2a44817e188e3c82c9314d246d76f7de720a1cd8e0
|
|
BLAKE2b-256 checksum How to use checksums |
991942c03bcc8da8db556b2eec9d7326dfdfb5bde3a192a526636502b41bd721
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / ihep_utilities-0.0.3-py3-none-any.whl
| Download URL | ihep_utilities-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
243ac7c2bf19ae122db2335d039e8fd68462f0bd5760d705545faf9ec6f47307
|
|
BLAKE2b-256 checksum How to use checksums |
adc1a8fa7753d63a09c9308daea67474de64f3ee7cfb8fa1378f7335cafbede6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for ihep-utilities 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.