Skip to content

Changelog

All notable changes to cage_isomer_builder. Versions follow semantic versioning; while the version is below 1.0, any release can change the API.

0.1.4 - 2026-11-10

Added

  • Vertex-label tables (cage_isomer_builder.utils.vertex_table): every symmetry-unique isomer with its vertex name, environment labels, mirror labels and chirality, without building any structures.
  • CageBuilder.vertex_table() for a built cage: the same isomers, in the same order, as enumerate_isomers() (or enumerate_rgroup_isomers() with groups or linker_patterns).
  • ideal_cage() for an ideal polyhedron: a named one (POLYHEDRA: tetrahedron, octahedron, cube, trigonal prism, square antiprism, cuboctahedron, icosahedron, dodecahedron) or any convex polyhedron given by its vertex coordinates, with phenylene, biphenyl or fumarate linkers (LINKERS) or any site offsets.
  • VertexTable.label_counts(), environment_counts() and write() (tab-separated, optionally gzipped).
  • For cages too large to list: count_isomers() and count_environments() (exact, Burnside's lemma) and sample_labels() (label distribution from weighted random placements, with standard errors).
  • cage-vertex-table command for all of the above from the shell (--count, --environments, --sample, --groups, --linker, --linker-patterns, --xyz, --list).
  • Vertex codes for any number of groups per linker: 5 when both sites next to a vertex carry a group, one character per depth on longer linkers (biphenyl), and a pair of group letters per depth for several kinds of group (AB.00.00-...). New mirror_code(), VertexScheme.view() and VertexScheme.depths().
  • enumerate_rgroup_isomers(naming="vertex") names R-group isomer files by their vertex names. Whenever the cage has vertex codes, the files record both names, the environment labels and the vertex scheme.
  • cage-vertex-name converts R-group isomer names (NH2-0-4_OH-1-5) as well as single-group ones.
  • vertex_codes.site_name() and geometry.fibonacci_sphere().
  • write_rgroup_isomer_file() takes name and info.
  • Documentation: vertex-label tables in the Build & enumerate guide, an API page for vertex_table, and how to run the tests.

Changed

  • VertexScheme.name() and codes() accept two groups on one linker and {group: sites} isomers instead of raising an error. Isomer files written by 0.1.3 still read correctly.
  • largest_window() and the docking rotation grid share one set of Fibonacci-sphere directions. Window estimates can differ slightly from 0.1.3 (the UiO-66 tetrahedral pore now reports 4.3 A instead of 4.1 A; the estimate depends on the number of directions sampled).
  • pytest and matplotlib are no longer installed with the package; they are in the dev dependency group.

Removed

  • cage_isomer_builder.cage.base.is_ase_atoms, file_to_smiles and make_building_block_with_factory. Use isinstance(x, ase.Atoms), atoms_to_smiles(file_to_atoms(path)) and stk.BuildingBlock directly.

Fixed

  • Typo in the topology table: Tri2²Tri2 is Tri2-2Tri2 (Tri2_2Tri2CageBuilder).