-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user to pad bounding box for small cmpds (#1007)
* Allow user to pad bounding box for small cmpds Raised by @daico007 in #1006, for very small molecules, the bounding boxes will be so close to zero that the determinant of the box vectors will be close to zero, signaling a co-linear box (psuedo-{1D, 2D}) and raising an exception. This PR provides an additional parmeter for the `mb.Compound.get_bounding_box` method, `pad_box` which is a boolean to avoid these co-linear systems by adding a 1nm pad to all box edges. `pad_box` is `False` by default, and unit tests have been provided to check both cases. Closes #1006 * Update pad_box and add unit tests * Update docstring to support indented list. Co-authored-by: Co Quach <[email protected]>
- Loading branch information
1 parent
146a77d
commit d6bf1b1
Showing
2 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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