Skip to content

Born approx clusters - #104

Merged
kewh5868 merged 7 commits into
mainfrom
born-approx-clusters
Apr 10, 2026
Merged

kewh5868 merged 7 commits into
mainfrom
born-approx-clusters

Conversation

@kewh5868

Copy link
Copy Markdown
Owner

Summary

  • Add a project-aware Debye-Waller analysis workspace with save/reload support and dedicated regression coverage.
  • Add a standalone Structure Viewer workflow and wire the visualization/X-ray helper tooling into the SAXS UI.
  • Expand electron-density mapping with contiguous-frame handling, pinned geometric tracking, Born Approximation output support, and the related UI wiring.
  • Refresh the getting-started and user-guide docs for the new workflows.

Validation

  • pre-commit hooks passed across all five local commits.
  • Started targeted pytest coverage for:
    • tests/test_debye_waller_analysis.py
    • tests/test_structure_viewer.py
    • tests/test_electron_density_mapping.py
    • tests/test_saxs_ui.py
  • The broader pytest sweep was still running when this PR text was drafted, so update this section with the final result if you wait for that run to finish before posting.

Issue Tracking

Resolves #52, #58, #59, #60, #61, #62.
Resolves #70, #71, #76, #77, #78, #80.
Resolves #84.
Follow-up before merge: open new issue number for the remaining validation work and residual visualizer layout/base-cutoff cleanup, and reference #84 in that new issue.
Partially addresses #88; the base of the visualizer can still be cut off in some layouts.
Resolves #90.
Resolves #91; the center element list is now displayed in the dropdown within the mesh settings table.
Resolves #92, #93, #97, #100, #101.

kewh5868 added 7 commits April 9, 2026 15:59
Ignore local Claude workspace state and planned docs scratch files so repo publishes stay clean.

Add repo agent guidance to keep GH_TOKEN-style secrets out of repo-local settings, logs, and tracked files.
Expand the cluster CLI, workflow, and UI so extracted frame folders and trajectory-derived frame sources can be inspected and exported through the same batch-oriented flow.

Document the updated behavior and cover the new trajectory/extracted-frame paths with dedicated tests.
Add the Debye-Waller workflow, standalone analysis window, and focused tests for segmented pair summaries, saved project reloads, and PDB-only validation.
Add the standalone structure viewer, package entry point, and regression tests for mesh updates, center snapping, and viewer state preservation.
Add contiguous-frame handling, pinned geometric tracking, Born Approximation exports, contrast-preview support, and regression coverage for the expanded electron-density mapping workflow.
Add auto-snap pane behavior, project setup and histogram ordering helpers, cluster save-state controls, computed-distribution launch wiring, and the regression coverage that exercises the new UI flows.
Refresh the getting-started and user-guide material for Debye-Waller analysis, the structure viewer, X-ray toolkit, and the expanded electron-density mapping and component-build workflows.
@kewh5868
kewh5868 merged commit eee8f8c into main Apr 10, 2026
1 check passed
@kewh5868
kewh5868 deleted the born-approx-clusters branch April 10, 2026 23:31

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa75c6c818

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1527 to +1531
self.process_shell_level_for_cluster(
cluster,
cluster_id,
0,
shared_shells=shared_shells,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve level-0 shell growth for linker-only clusters

In the smart-shell path (core_includes_shell_atoms=False), level-0 shells are added only via process_shell_level_for_cluster(...), but that routine grows shells from node atoms only. If a valid atom-type setup produces clusters with linkers and no nodes, those clusters will now export with no shell atoms in Smart Solvation Shell mode, even though the legacy path included nearby shell molecules. This changes cluster composition and stoichiometry for linker-only systems, so smart mode should either seed level-0 growth from linker atoms too or avoid this path for linker-only clusters.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment