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.4.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.4-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cof_landscaper-2026.5.12.4.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.4.tar.gz
Algorithm Hash digest
SHA256 822970f1c039778dbb1608102bc42434713907d8346385ea47543e8f40ac6e8d
MD5 05a0cfd0f0b81fa9b0d060d115914928
BLAKE2b-256 bd4f625910ea6dae51a0dab05d1daabe72756de3a2f262649530dedc326a1805

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cof_landscaper-2026.5.12.4-py3-none-any.whl
  • Upload date:
  • Size: 58.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 663ebf80cf02c9ccd811e1af3fd379ba017333cd1188559b850387dac8787cdb
MD5 ff7be46fbfd04d99ca115f896e9321e5
BLAKE2b-256 9cc9de41d32f9bfb00f7f448f90251e14e213072b64dc42b3cd3fa4a3c135c25

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