Skip to content

Conversation

@hannahbaumann
Copy link
Contributor

The sampler setup is very slow for dry runs of membrane systems.
We are using the LocalEnergyMinimizer to do a short minimization, but don't want to do that in the dry run.
minimization_steps are set to zero in the dry run, but for the LocalEnergyMinimizer that leads to running minimizations until converged:
maxIterations (int) – the maximum number of iterations to perform. If this is 0, minimation is continued until the results converge without regard to how many iterations it takes. The default value is 0.

quick fix would be just to change it to 1, but we could also turn off minimization completely during dry runs?

@hannahbaumann hannahbaumann changed the title Fix sampler setup for dry runs [ WIP ] Fix sampler setup for dry runs Oct 17, 2025
Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

Ah shoot! I forgot that 0 had a special meaning, thanks for catching this @hannahbaumann !

I'd prefer changing this in the underlying code and make it so that None just skips minimization, could you do this instead?

@IAlibay
Copy link
Member

IAlibay commented Oct 17, 2025

@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 10.00000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.35%. Comparing base (b145b8d) to head (b999185).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...enfe/protocols/openmm_rfe/_rfe_utils/multistate.py 10.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1590      +/-   ##
==========================================
- Coverage   95.45%   93.35%   -2.11%     
==========================================
  Files         174      174              
  Lines       14552    14553       +1     
==========================================
- Hits        13891    13586     -305     
- Misses        661      967     +306     
Flag Coverage Δ
fast-tests 93.35% <10.00%> (?)
slow-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hannahbaumann hannahbaumann changed the title [ WIP ] Fix sampler setup for dry runs Fix sampler setup for dry runs Oct 20, 2025
@hannahbaumann hannahbaumann requested a review from IAlibay October 20, 2025 08:14
Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

Thanks, too small things, otherwise it looks good to me!

@github-actions
Copy link

No API break detected ✅

@IAlibay
Copy link
Member

IAlibay commented Oct 20, 2025

Failing tests are down to AWS issues it looks.

@IAlibay IAlibay merged commit 3ebf7e3 into main Oct 20, 2025
10 of 12 checks passed
@IAlibay IAlibay deleted the fix_minimization_dry branch October 20, 2025 09:37
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.

3 participants