aiida_conda_scheduler
AiiDA scheduler plugins that allow for conda run.
Currently, as of aiida-core v2.0.1, it is impossible to set up a Computer + Code which can run, for example:
conda run --name myenv mpirun -np 4 pw.x -i input.in
since, (a) a code can only specify a remote_abs_path and (b) only a computer can specify the mpirun_command.
This is really the only way to run a code which is not in the Conda base environment, since conda activate myenv
(which could perhaps be added to prepend_text) fails when run in a script.
These scheduler plugins subclass the built-in scheduler subclasses, and overrides the _get_run_line method and:
- Raises a
NotImplementedErroriflen(codes_info) != 1orcodes_run_mode != CodeRunMode.SERIAL(i.e. only one code is supported). - Loads the code from
codes_info[0].code_uuidand retrieves its description - Uses this description to determine the environment name, by finding
env=myenv - Appends
conda run --name myenvto the run line.
Installation
pip install aiida_conda_scheduler
reentry scan # aiida v1.x only
Then the plugins should show in:
verdi plugin list aiida.schedulers
Development
Use pipx to install the tox and pre-commit command tools.
git clone https://github.com/chrisjsewell/aiida-conda-scheduler .
cd aiida-conda-scheduler
pre-commit run --all
tox
For aiida-core v1, use e.g.
tox -e py38-v1
License
MIT
Contact
Metadata
Release files for aiida_conda_scheduler 0.1.0
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 |
|---|---|---|---|---|
| aiida_conda_scheduler-0.1.0.tar.gz | 5.2 kB | Without provenance | Details for aiida_conda_scheduler-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiida_conda_scheduler-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aiida_conda_scheduler-0.1.0-py3-none-any.whl |
Total release size: 9.5 kB
Release files / aiida_conda_scheduler-0.1.0.tar.gz
| Download URL | aiida_conda_scheduler-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b558537d4cc151711940adef8d1a70826a7aee8460ec66439701faf5dc48db79
|
|
BLAKE2b-256 checksum How to use checksums |
d8b1e3c71b466b9866b70554d4e7a66719b8c5a076acb289c3a370b98258c19e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Release files / aiida_conda_scheduler-0.1.0-py3-none-any.whl
| Download URL | aiida_conda_scheduler-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
936eda0729aa6818fcd7467a63afe79c117ecb848e7fee44e76d35d81ea1bd49
|
|
BLAKE2b-256 checksum How to use checksums |
d15cd4840e515ff93ec5e491a8db4001aabcdd1fc29340b56ea9357fb2f12170
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Security for aiida_conda_scheduler 0.1.0
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.