Skip to main content

Python interface to PLUMED

Project description

Install using the following command:

python -m pip install plumed

WARNING: You will need to also build and install the plumed library (see http://www.plumed.org) and make sure the file libplumedKernel.so (or libplumedKernel.dylib) is available on your system.

You should then make sure the library is found setting the environment variable PLUMED_KERNEL:

export PLUMED_KERNEL=/path/to/libplumedKernel.so
python
>>> import plumed
>>> p=plumed.Plumed()

If you manage multiple plumed versions on your system using tcl environment modules, this should be taken care automatically by the plumed module.

Alternatively, a pure python solution is:

>>> import plumed
>>> os.environ["PLUMED_KERNEL"]="/path/to/libplumedKernel.so"
>>> p=plumed.Plumed()

Finally, notice that you can set the path to the plumed library directly when declaring a Plumed object:

>>> import plumed
>>> p=plumed.Plumed(kernel="/path/to/libplumedKernel.so")

This will allow you to mix different plumed versions in the same python script.

CHANGES: See the PLUMED documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for plumed, version 2.5.4
Filename, size File type Python version Upload date Hashes
Filename, size plumed-2.5.4.tar.gz (152.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page