Skip to content
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

Initial implementation of fill_sphere packing function #460

Merged
merged 14 commits into from
Mar 11, 2019

Conversation

ftiet
Copy link
Contributor

@ftiet ftiet commented Sep 28, 2018

Passes all unit tests

@mattwthompson
Copy link
Member

Yikes, travis didn't want to build those tests at all. Let's see if a restart magically fixes everything...

Note that there is no `mb.Sphere` class like `mb.Box`, so a
`_validate_sphere` function is not so sensible.
@mattwthompson
Copy link
Member

In what I believe to be a spooky coincidence to #469, these tests fail on Python 2.7 with a INTERNALERROR> IOError: [Errno 24] Too many open files: '/Users/travis/build/mosdef-hub/mbuild/.coverage'. I personally wouldn't mind merging this despite that.

Otherwise this is good to me. Somebody else want to take a look? @justinGilmer?

@justinGilmer justinGilmer self-requested a review November 14, 2018 16:59
@justinGilmer
Copy link
Contributor

Looks good so far, I think I would like to merge the other changes in #471 before we merge this. Everything is passing in #471. If we can refactor the code to deal with most of the file handling in _run_packmol, changing this should be much easier as well.

@justinGilmer
Copy link
Contributor

I think this was in a pretty good spot last time. I think the next step is merging in the latest changes and see if all the tests pass. Might be a few conflicts to resolve and we need to change these new functions to make sure we are closing flies properly. #471 showcases how those changes were made.

I can help with that if needed! I wont be able to take a swing at it today, but I can work on this tomorrow.

@mattwthompson mattwthompson added this to the 0.8.3 milestone Feb 19, 2019
Copy link
Contributor

@justinGilmer justinGilmer left a comment

Choose a reason for hiding this comment

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

Really close to merging! Just a few nits + some additional tests.

@mattwthompson mattwthompson modified the milestones: 0.8.3, 0.8.4 Feb 19, 2019
@justinGilmer
Copy link
Contributor

Is there anything really missing now from this feature @mattwthompson @ftiet ?

@codecov
Copy link

codecov bot commented Mar 7, 2019

Codecov Report

Merging #460 into master will increase coverage by 0.01%.
The diff coverage is 90.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #460      +/-   ##
==========================================
+ Coverage   89.79%   89.81%   +0.01%     
==========================================
  Files          44       44              
  Lines        3225     3298      +73     
==========================================
+ Hits         2896     2962      +66     
- Misses        329      336       +7
Impacted Files Coverage Δ
mbuild/packing.py 91% <90.54%> (-0.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2123315...2499423. Read the comment docs.

@mattwthompson
Copy link
Member

I consider this good to go (if the mac builds ever get rolling ...)

Copy link
Contributor

@justinGilmer justinGilmer left a comment

Choose a reason for hiding this comment

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

LGTM

@justinGilmer justinGilmer merged commit 5344c35 into mosdef-hub:master Mar 11, 2019
umesh-timalsina referenced this pull request in GOMC-WSU/MoSDeF-GOMC Mar 22, 2022
* Initial implementation of fill_sphere packing function

* Do some sanity checks on `sphere` argument

Note that there is no `mb.Sphere` class like `mb.Box`, so a
`_validate_sphere` function is not so sensible.

* Add test to ensure all particles are in the sphere

* Small formatting changes

* Merge changes from #471

* Allow for sphere arguments to be tuples

* Switch from PDB to XYZ files #422

* Test for some bad arguments

* Test for some more bad args for coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants