Repository navigation
Improve steric-clash repair and add placement/repair tuning knobs - #549
Merged
Merged
Conversation
Adds explicit control over beam-search placement, force-field repair steps, and ring-piercing retry behavior in generate_complex, and consolidates bad-state detection (overlap/ordering/ring-piercing) into shared helpers. run_sterics_check gains make_figure to skip plotting when only the clash/severity data is needed.
…lized local variable' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…lized local variable' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…lized local variable' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…tiple times' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…tiple times' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Replace `float | None` (requires Python 3.10) with Optional[float] -- this also broke doctest collection under Python 3.8 (TypeError at import time). Also initialize per_atom_ff_force/optimized2 with safe fallbacks in enforce_metal_ligand_distances_and_optimize so the return statement is always well-defined even when constrain/final_relax are disabled, per CodeQL's possibly-unbound-variable alerts.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #549 +/- ##
==========================================
+ Coverage 40.26% 40.65% +0.38%
==========================================
Files 93 93
Lines 30325 30349 +24
==========================================
+ Hits 12211 12339 +128
+ Misses 18114 18010 -104
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
generate_complexinto shared_bad_state_summary/_hopelesshelpersplacement_beam_topk,placement_early_exit_score) and repair behavior (repair_ff_steps,max_ring_piercing_retries,bail_if_still_bad_after_repair)run_sterics_checkgainsmake_figureto skip plotting when only clash/severity data is needed__main__block to correctly unpack the tuple returned bygenerate_complexTest plan
run_sterics=Trueandmake_figure=False