Skip to content

Fix sidemax test in test_packing.py by using a more reasonable length #1256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025

Conversation

chrisjonesBSU
Copy link
Contributor

PR Summary:

Packmol had a bug fix recently and a new release on conda-forge about a week ago. I think this was changing the behavior of the initial guess (using sidemax). The test_sidemax tests are failing as a result. From what I can tell, the issue stems from using too large of a box size combined with large sidemax values (2000 nanometers), which is causing the packing calls in the test to use a ton of memory. It was up to 28GB when running the same test in a notebook

PR Checklist


  • Includes appropriate unit test(s)
  • Appropriate docstring(s) are added/updated
  • Code is (approximately) PEP8 compliant
  • Issue(s) raised/addressed?

Copy link

codecov bot commented Jul 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.96%. Comparing base (ea7a20d) to head (853aeaa).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1256   +/-   ##
=======================================
  Coverage   85.96%   85.96%           
=======================================
  Files          53       53           
  Lines        4860     4860           
=======================================
  Hits         4178     4178           
  Misses        682      682           

☔ 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.

@chrisjonesBSU
Copy link
Contributor Author

After looking at this some more, I don't think the issues arise from too large of box sizes or sidemax values, packmol is consuming large amounts of memory even when using packmol's own default value for sidemax. I'm seeing very different memory useage between packmol 20.16 and >=21.

I think we can still merge this, the test is still testing that sidemax works as expected, but just with smaller values. I'll look into the packmol issue a little more.

@chrisjonesBSU chrisjonesBSU merged commit 709dc25 into mosdef-hub:main Jul 24, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy