Python toolkit for building and analyzing 2D COF stacking-energy landscapes.
Project description
COF-Landscaper
COF-Landscaper is a Python package for building and analyzing 2D COF stacking-energy landscapes.
Researchers interested in applying COF-Landscaper to their own systems are welcome to contact me at gjl342@student.bham.ac.uk, particularly if they are unable or prefer not to install and run the workflow themselves. Depending on availability and the scope of the project, I may be able to provide support or explore a possible collaboration.
Platform Support
- Tested on macOS and Linux.
- Microsoft Windows is currently not tested.
Install From Source (PyPI release planned)
Create a virtual environment with Python 3.12.
python3.12 -m venv test-coflandscaper
Activate the environment.
source test-coflandscaper/bin/activate
Confirm the active Python executable.
which python
Confirm the Python version is 3.12.
python --version
Upgrade pip.
pip install --upgrade pip
Confirm pip is available.
pip --version
Clone the repository.
git clone https://github.com/GregorLauter/COF-Landscaper.git
Enter the project directory.
cd COF-Landscaper
Install the package.
pip install .
Install the Jupyter kernel package.
pip install ipykernel
Register this environment as a Jupyter kernel.
python -m ipykernel install --user --name test-coflandscaper --display-name "Python (test-coflandscaper)"
Workflow Notes
- The DFT workflow requires additional external HPC infrastructure.
- The MLIP workflow can be executed fully on a local machine.
- Workflow diagram:
Example Notebook
- Example notebook location in this repository:
examples/COF-1/0_all/cof-landscaper.ipynb - After installation, you can work from any project folder on your computer.
- A practical workflow is to copy the example notebook into your own project directory and keep the original examples folder as a reference.
Required Input Files
- The workflow requires separate node and linker fragments provided as
.xyzfiles. - Input fragments should ideally be pre-optimized with a generic force field, such as UFF, to remove severe steric clashes and obtain reasonable approximate bond lengths.
- The subsequent pre-optimization step handles the assembled framework. Therefore, the main requirement at this stage is that the individual fragments are chemically sensible and can be connected cleanly by the builder.
- The
.xyzfiles can be prepared using any suitable molecular editor or visualizer, for example Avogadro, Mercury, or ChemDraw.
VS Code Recommendation
VS Code is (personally) recommended for running and editing the notebook and Python code.
To use the correct kernel in VS Code:
- Open the notebook.
- Click the kernel selector in the top-right.
- Choose
Python (test-coflandscaper). - Run a test cell such as
import coflandscaper as cl.
Where To Find Explanations
- A stepwise explanation of the computational workflow is provided in the Markdown cells of the example notebook.
- Methodological details, assumptions, and validation context are documented in the accompanying manuscript [insert link here].
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 cof_landscaper-2026.5.12.1.tar.gz.
File metadata
- Download URL: cof_landscaper-2026.5.12.1.tar.gz
- Upload date:
- Size: 5.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd68bd1ffee24de8b08b9474bf4a074e3b1b7a00a099bfe658dfd2a9e33e510
|
|
| MD5 |
d4307d0b3555d13d0b72a1772ddd675f
|
|
| BLAKE2b-256 |
cd05ef0c7ed66b534726340b448210d88767d2589c62a12924e8750d3e0908f6
|
File details
Details for the file cof_landscaper-2026.5.12.1-py3-none-any.whl.
File metadata
- Download URL: cof_landscaper-2026.5.12.1-py3-none-any.whl
- Upload date:
- Size: 56.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dff1e6adde6b386fed652ebae4bddd78d3cad05cfb05e43ab754316b0a59ab71
|
|
| MD5 |
ef733b013c852b722f502ffa4221de3e
|
|
| BLAKE2b-256 |
258db33af6b9a3c7ce6cf3d6152932b20efa6efbe69e6e18ad480f1c2fadd18c
|