Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

aiida_conda_scheduler

AiiDA scheduler plugins that allow for `conda run`.

aiidaplugin
Published20 Jul 2022
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

Build Status Coverage Status Docs status PyPI version

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:

  1. Raises a NotImplementedError if len(codes_info) != 1 or codes_run_mode != CodeRunMode.SERIAL (i.e. only one code is supported).
  2. Loads the code from codes_info[0].code_uuid and retrieves its description
  3. Uses this description to determine the environment name, by finding env=myenv
  4. Appends conda run --name myenv to 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

chrisj_sewell@hotmail.com

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
aiida-core
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
aiida-core>=1.0,<3runtime
coverage
Environment
{
  "extras": "toml",
  "marker": "extra == \"testing\"",
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
coverage[toml] ; extra == "testing"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"testing\"",
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
pytest~=6.0 ; extra == "testing"runtime
pytest-cov
Environment
{
  "extras": "",
  "marker": "extra == \"testing\"",
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
pytest-cov ; extra == "testing"runtime

Distribution files

2 collected
aiida_conda_scheduler-0.1.0-py3-none-any.whl

bdist_wheel · 4.2 KB · Python py3

Source file
aiida_conda_scheduler-0.1.0.tar.gz

sdist · 5.09 KB · Python source

Source file

Repository

PENDING
chrisjsewell/aiida-conda-scheduler

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:56 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:43bd22593f2dd9ecdcb3d082e1bba97a59d5bf14f10be8802ac3e57496ad3cb7

Other collected versions

View all collected versions →