Skip to content

Rename clashing_tolerance to clash_tolerance; documentation fixes (0.7.0) - #87

Merged
jvsguerra merged 6 commits into
mainfrom
fix/clashing-tolerance-docstring
Nov 25, 2026
Merged

jvsguerra merged 6 commits into
mainfrom
fix/clashing-tolerance-docstring

Conversation

@jvsguerra

Copy link
Copy Markdown
Member

Summary

  • Rename (breaking): Cage.pack(clashing_tolerance=...) becomes clash_tolerance, in the same argument position. The old keyword is removed without a deprecation period, since AtomPacker is in alpha; calls using it now fail with a TypeError.
  • Docstrings: the tolerance is described as an allowed overlap subtracted from the contact distance (the sum of the two radii). Positive values allow closer contacts and pack more atoms. The old wording, "minimum allowed distance", described the opposite of what Cage._filter_clashing_atoms does.
  • Documentation:
    • Tutorial: new note on clash_tolerance, and an explanation of the optimization (Cartesian product of angles and translations, selection by volume-based diameter, nthreads, cluster.log).
    • Tutorial: fixed the detect_openings link, the angles/translations wording and the Cluster.save sentence.
    • README: the cluster-preview example now calls cage.cluster.preview().
    • about.rst: fixed typos and updated the citation.
    • ARCHITECTURE.md: updated the method signatures.
  • Packaging: joblib is imported directly in Cage.py and is now declared as a dependency.
  • Plotly: allow plotly 7 (>=6.0.0,<7.2.0), cherry-picked from Dependabot's dependabot/pip/plotly-gte-6.0.0-and-lt-7.2.0. Checked with plotly 7.1.0: all preview() methods build their figures (Cage, Cavity, Openings, Cluster, combined).
  • Version: 0.6.2 → 0.7.0.

Tests

pytest: 42 passed (also checked with plotly 7.1.0).

Notes

  • Results are unchanged: only the keyword name and documentation changed, not the filtering code.
  • NPGuestsInSMC passes clashing_tolerance= and must switch to clash_tolerance before it can use 0.7.0.
  • The paper cites AtomPacker v1.0.0, which must be released before submission. Before tagging 1.0.0, re-run the NPGuestsInSMC benchmark with it (make experiments, make analyze).
  • After merging, tag the merge commit 0.7.0. Pushing the tag does not publish anything; PyPI deployment runs when a GitHub Release is published.

jvsguerra and others added 6 commits November 25, 2026 11:01
The tolerance is subtracted from the sum of the radii (an allowed overlap),
not a minimum distance: positive values allow closer contacts and pack more
atoms (see Cage._filter_clashing_atoms).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Cage.pack: clash_tolerance (same position); clashing_tolerance kept as a
  deprecated keyword (DeprecationWarning; ValueError if both differ)
- docstrings describe it as an allowed overlap subtracted from the contact
  distance; tutorial gets a note on clash_tolerance and on the optimization
  (Cartesian product, selection by volume diameter, nthreads, log)
- docs: fix detect_openings link, angles/translations wording, Cluster.save
  sentence, README cluster preview call, about.rst typos and citation;
  ARCHITECTURE.md signatures updated
- declare joblib (imported directly) as a dependency
- tests: new keyword, deprecation and conflict tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Updates the requirements on [plotly](https://github.com/plotly/plotly.py) to permit the latest version.
- [Release notes](https://github.com/plotly/plotly.py/releases)
- [Changelog](https://github.com/plotly/plotly.py/blob/main/CHANGELOG.md)
- [Commits](plotly/plotly.py@v6.0.0...v7.1.0)

---
updated-dependencies:
- dependency-name: plotly
  dependency-version: 7.1.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 589f7a3)
AtomPacker is in alpha, so the rename does not need a deprecation period.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jvsguerra
jvsguerra merged commit c2a6fa7 into main Nov 25, 2026
5 checks passed
@jvsguerra
jvsguerra deleted the fix/clashing-tolerance-docstring branch November 25, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant