A simple framework for molecular Monte Carlo sampling with uncertainty quantification
Project description
imce
Small Python based code for ab initio molecular simulations (using Monte Carlo) using modified sampling criteria (derived from computed spectra uncertainty in the molecular structure). See the following publication for further details: [DOI here]
Installation and Requirements:
Install XTB and STD2 as the required backends (see their respective manuals). On a M2 Macbook, STD2 is compiled with the following flags:
LDFLAGS="-L/opt/homebrew/opt/openblas/lib" CPPFLAGS="-I/opt/homebrew/opt/openblas/include" FC=gfortran-14 CC=gcc-14 meson setup _build -Dla_backend=openblas --wipe
The package can be installed locally with
pip install .
or (with additional packages for development)
pip install '.[dev]'
Usage:
The framework can be accessed as a Python module:
#!/usr/bin/env python3
import imce
from imce.utility import xyz_to_if, if_to_xyz
xtb = imce.xtb_std2_itrf(['ENERGY', 'UVVIS'])
settings = imce.settings(seed = 0, windows = [[1.5, 8.0]], itrf = xtb, unit = 'eV', convolution_factor = 0.25)
mol = xyz_to_if('dfhbi.xyz')
simbox = imce.simbox(settings, '_uq_02_short.hdf5', mol)
simbox.init()
sim = imce.uqmc(simbox, steps = 250, delta = 0.01875, sc = 0.2, method = 'UVVIS').run()
Then script is the run on the TU BS ThC cluster using the following command:
tcsub -q s -a generic imce_jobfile.py
Contributing:
Contributions require signature of the commit, acknowledging the following statement:
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
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
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 imce-1.0.0.tar.gz.
File metadata
- Download URL: imce-1.0.0.tar.gz
- Upload date:
- Size: 51.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b6c9c4cc9d3f7f2685687b5556cb720f1b0cc2df776d48028167cbdd5ee1915
|
|
| MD5 |
269309172ee507c0a17a65a7bd943796
|
|
| BLAKE2b-256 |
ff0f9e2365f8365df42c769b88352be76dd97cead2559b41559a9f47dadf1fd2
|
File details
Details for the file imce-1.0.0-py3-none-any.whl.
File metadata
- Download URL: imce-1.0.0-py3-none-any.whl
- Upload date:
- Size: 56.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
641a2e2b85db170d6234c0751bc8f8e2d8d9c820be770b8e0787d1cdea4685c8
|
|
| MD5 |
ce7c63ffd577f07998d89533408d7a07
|
|
| BLAKE2b-256 |
4d81c41f8c29fee6b6aa07282b1df022b38d418946097c2fd4ac6f2d31d1f148
|