Skip to main content

COF-Landscaper logo

COF-Landscaper

Build covalent organic frameworks and explore how their layers stack.

COF-Landscaper gives experimental chemists a notebook workflow for turning molecular fragments into periodic framework models. For a 2D COF, it constructs a layer, varies the spacing and lateral displacement between layers, and ranks the sampled arrangements by energy. Relax the most promising candidates and compare their simulated powder X-ray diffraction (PXRD) patterns with your measurement. Several arrangements can give similar patterns, so use the comparison alongside other structural evidence.

Installation · Choose an example · Prepare building blocks · Documentation and data sources

Workflow from single-layer construction through inclined and serrated stacking scans to energy minima, full-cell optimisation and comparison with experimental PXRD

Installation

For researchers without prior programming experience, we provide a step-by-step guide covering installation and running the first workflow.

Beginner's Guide

COF-Landscaper requires Python 3.12. You can run either of these PyPI installation commands from any directory.

pip install cof-landscaper

For Jupyter notebooks, install the notebook extra instead.

pip install "cof-landscaper[notebook]"

Further installation options (source installation, GPU and HPC setup)

Examples

Workflow System What you can do
Default notebook ILCOF-1 Build a layer, screen its stacking arrangements, relax the selected structures and compare PXRD with experiment. Start here.
Configurable notebook ILCOF-1 Choose the energy model, slip direction and sampling grid. The example screens 28 serrated arrangements.
2D HPC driver and inputs ILCOF-1 Run the calculation on a cluster, then inspect the downloaded landscape, structures and diffraction patterns in the analysis notebook.
3D driver and inputs BP-COF-1 Assemble the eight-connected bcu framework, relax the full cell and simulate PXRD.
Optional scaling notebook COF-LZU-1 Inspect peak offsets and explore an optional in-plane lattice adjustment using selected reflections.

Prepare the building blocks

Start from the framework you want to model. Choose a topology, then divide the bonded framework into molecular fragments with the required number and arrangement of connections. Choose the cuts to preserve the chemistry that matters. Cutting a single bond next to an imine, for example, keeps the C=N bond and its intended E or Z geometry within one fragment.

Cuts through a square net give a four-connected node and a two-connected linker, each marked at the cut sites Cutting through C=N splits the imine across two fragments. Cutting the adjacent single bond keeps the imine geometry together.

Place one helium atom (He) on each side of a cut to mark where the opposite fragment should connect. These markers guide assembly and are removed when the fragments are joined. In ILCOF-1, the four-connected pyrene node joins a two-connected linker that retains both imines. Node XYZ · Linker XYZ

ILCOF-1 framework with the pyrene node and imine-containing linker highlighted beside their He-marked molecular fragments

Prepare the XYZ files in Avogadro 2

  1. Draw or import each fragment with the intended bond orders and stereochemistry. Drawing molecules
  2. If the coordinates need preoptimisation, select UFF and run Extensions → Optimize Geometry. Force-field settings
  3. Once the geometry is ready, add one He per connection along the intended bond direction, replacing any capping hydrogen at that site.
  4. Export each fragment as XYZ via File → Export → Molecule…. Put nodes in 0_node/ and any linkers in 0_linker/. Exporting molecules

Inspect the bond geometry at the joins and check for clashes in the assembled layer before scanning its stacking arrangements.

Supported 2D topologies

Honeycomb, square and Kagome nets have linkers between nodes. The two binary nets connect node A (circles) directly to node B (diamonds).

Each entry gives the number of distinct XYZ files × He markers per file. The two binary topologies join the two node types directly.

Topology Keyword Nodes Linkers
Honeycomb hcb 1 × 3 1 × 2
Square lattice sql 1 × 4 1 × 2
Kagome kgm 1 × 4 1 × 2
Binary honeycomb hcb_ab 2 × 3 None
Binary square lattice sql_ab 2 × 4 None

For a 3D example, BP-COF-1 uses an eight-connected node and a two-connected linker on the bcu net. 3D configuration

Documentation and data sources

Use this README and the example notebooks for practical instructions and guidance on interpreting results. The API reference on Read the Docs is under development. Example workflows · Read the Docs

The example data record lists the framework publications, experimental PXRD sources and wavelengths, and the origin of the computational results. Example data sources

Citation and contact

When reporting results, cite Gregor Lauter, COF-Landscaper (software) with the version you used and the repository URL. Also cite the experimental data and energy model used in your study. Software repository · Version tags

Report software problems on GitHub Issues. For help preparing fragments, using the workflow or discussing a collaboration, contact Gregor Lauter.

Development

From the source directory containing pyproject.toml, with uv and just installed, set up the developer environment and run the repository checks. The package is distributed under the MIT licence.

just setup
just check

Metadata

Release files for cof-landscaper 2026.11.27.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cof-landscaper 2026.11.27.0
File Size Uploaded Provenance Actions
cof_landscaper-2026.11.27.0.tar.gz 3.5 MB Without provenance Details for cof_landscaper-2026.11.27.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cof-landscaper 2026.11.27.0
File Interpreter ABI Platform Actions
cof_landscaper-2026.11.27.0-py3-none-any.whl Python 3 none any Details for cof_landscaper-2026.11.27.0-py3-none-any.whl

Total release size: 3.6 MB

Release files / cof_landscaper-2026.11.27.0.tar.gz

Download URL cof_landscaper-2026.11.27.0.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
b14f72e7d10a37bd04280b8c49e182fb1e1c50278ea6284a43a426de08e860e4
BLAKE2b-256 checksum
How to use checksums
09abd4d00e3118f3039fd9bc3b53ed20ccde54a4cb97821d4637950e16ef0dc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cof_landscaper-2026.11.27.0-py3-none-any.whl

Download URL cof_landscaper-2026.11.27.0-py3-none-any.whl
Size 97.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8ccc0bd033c990fb409478b53579bec8b7c5e5819d6aa724fa3c91a6b8ffeb4
BLAKE2b-256 checksum
How to use checksums
a275d8c9c438591346af7107a65fa792f56957ced6f16effa5feac50ef07011e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for cof-landscaper 2026.11.27.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page