A Python library for PLUMED-style colvar files
Project description
A Python package to read and write PLUMED colvar files.
Free software: MIT license
Example usage
Basic read/write operations:
from colvar import Colvar
# Read a colvar file
cv = Colvar.from_file('colvar.dat')
# Access data
bias = cv["metad.bias"]
cv["metad.rct"] = my_array
del cv["metad.acc"]
# Write a new colvar file
cv.write('new_colvar.dat')
Joining two files, and column-wise actions:
cv1 = Colvar.from_file('colvar1.dat')
cv2 = Colvar.from_file('colvar2.dat')
cv3 = Colvar.from_file('colvar3.dat').choose("rmsd")
# Append time-wise
# Throws an error if cv2 does not have all keys in cv1
cv1.tappend(cv2)
# Append key-wise
# Throws an error if number of rows don't match
cv1.kappend(cv3)
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
colvar_toolkit-0.1.0.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colvar_toolkit-0.1.0.tar.gz.
File metadata
- Download URL: colvar_toolkit-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2941cf6c587b55226a14ecded87926d6177a982d54139cb9299790f7d527a14
|
|
| MD5 |
58f99c117fc02e01e04f7d34878894dc
|
|
| BLAKE2b-256 |
91326b259c173c1d637f9b7c78ab97485591cb71c74950838d5d5bd8902a327c
|
File details
Details for the file colvar_toolkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: colvar_toolkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
715f0f30e0541f7f5498eeccbef3d8713062d446565ad442f5166561f0a06948
|
|
| MD5 |
e0070cd5c30a4d49f52b00a199903cdd
|
|
| BLAKE2b-256 |
b4052a9440d02930e3b70a2369d9d41315b8274af1672b8e93cd3e09138bacbe
|