Skip to content

pool: apply energy_window_kcal to the final selection - #22

Open
rpinho wants to merge 1 commit into
rowansci:masterfrom
rpinho:fix-openconf-energy-window
Open

rpinho wants to merge 1 commit into
rowansci:masterfrom
rpinho:fix-openconf-energy-window

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026

Copy link
Copy Markdown

The pool checks energy_window_kcal only against the minimum known at insertion time, so conformers accepted before a lower-energy conformer arrives stay in the output even when they fall outside the window.
generate_conformers("CCCC", config=ConformerConfig(energy_window_kcal=0.01, n_seeds=20, seed_prune_rms_thresh=-1.0, random_seed=42, num_threads=1, n_steps=0, do_final_refine=False, dedupe_rmsd_threshold=None)) returns 4 conformers spanning 2.93 kcal/mol.
The patch makes select_final drop unprotected conformers more than energy_window_kcal above the pool minimum, after deduplication and before the max_out check and either selection strategy.
Tests cover both selection strategies, deduplication on and off, protected records and a conformer exactly at the window edge, plus the butane case above.

This edits the same lines of select_final as #8; if #8 lands first I will rebase this on top of it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

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