-
Notifications
You must be signed in to change notification settings - Fork 81
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
Different behavior in fill_box
and fill_region
. fill_region
errors when using a list of Compounds
#1080
Comments
Following! |
Ok, turns out this wasn't really a bug in the functionality, but poor documentation and a missing check/validation step.
In this for loop/zip, if I think we'll have to handle
In the example of my original comment, I only have 1 boundary condition, that I want to fill with both methane and ethane (i.e. fill the region above a surface), so I would have to do something like:
I think it would make sense to be able to use a single boundary condition that can be used with any length of I'll work on a PR. |
Although, we could keep it as is, and require that the user is explicit in defining packing boundaries (like my example above), then we just need a check to make sure |
Good find! Yeah, I agree a smitch more documentation + better validation (so more meaningful error) would be great! |
Closed by #1088 |
Bug summary
the
fill_region
function inpacking.py
isn't working as expected, specifically when using a list of compounds and a list ofn_compounds
Code to reproduce the behavior
I get the following error when running the
mb.fill_region
portion:fill_region
does work whencompound
andn_compounds
aren't passed in as lists larger than length 1:Software versions
python --version
)? 3.11The text was updated successfully, but these errors were encountered: