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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file plumed-2.7.2.tar.gz
.
File metadata
- Download URL: plumed-2.7.2.tar.gz
- Upload date:
- Size: 266.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.7.0 requests/2.26.0 setuptools/57.1.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
24d330c4491a15ed65cef2bebf7a51caa85f81d37c79e58b277e6cbb843ed306
|
|
MD5 |
89019bbc5ea3322faca6f9bd3496f652
|
|
BLAKE2b-256 |
5a15aa63959b3ba6b971153a9b8716a856ffd18dc6baa4ba1d2584b1e132ab0a
|