Skip to main content

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:

COF-Landscaper workflow

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 .xyz files.
  • 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 .xyz files 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:

  1. Open the notebook.
  2. Click the kernel selector in the top-right.
  3. Choose Python (test-coflandscaper).
  4. 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


Download files

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

Source Distribution

cof_landscaper-2026.5.12.2.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cof_landscaper-2026.5.12.2-py3-none-any.whl (56.8 kB view details)

Uploaded Python 3

File details

Details for the file cof_landscaper-2026.5.12.2.tar.gz.

File metadata

  • Download URL: cof_landscaper-2026.5.12.2.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

Hashes for cof_landscaper-2026.5.12.2.tar.gz
Algorithm Hash digest
SHA256 ead0d2779794438bb9e1c05b56e5ac9af845d9a39a06043513ec551b58cac8b0
MD5 c1e1b93cec8fe928250003d304e93a68
BLAKE2b-256 7014b9b28506679dedac1a6da42e006bce9bf8022fdf233e3f2c37e582194367

See more details on using hashes here.

File details

Details for the file cof_landscaper-2026.5.12.2-py3-none-any.whl.

File metadata

  • Download URL: cof_landscaper-2026.5.12.2-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

Hashes for cof_landscaper-2026.5.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce19e90e68df284e7b966e507e18255800d2a1bd258dd342a9eac4f135da85e5
MD5 994cea1940caf642436601320891e0fa
BLAKE2b-256 07fc5d6769c1410ef7a3891adfac5ac39dfb8c851b2c3e71aeb6e080cf6d3894

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page