Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyfothergill committed Apr 27, 2021
1 parent 5016080 commit 288d0e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mbuild/compound.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def particles_by_element(self, element):
Parameters
----------
name : str or ele.Element
element abbreviation or element
element abbreviation or element
Yields
------
Expand Down Expand Up @@ -983,7 +983,6 @@ def box(self, box):
raise TypeError("box must be specified as an mbuild.Box")
if self.port_particle and box is not None:
raise ValueError("Ports cannot have a box")
# TODO: Fix this for non-orthogonal boxes
# Make sure the box is bigger than the bounding box
if box is not None:
if (box.lengths < self.boundingbox.lengths).any():
Expand All @@ -997,7 +996,7 @@ def box(self, box):
@property
def element(self):
return self._element

@element.setter
def element(self, element):
if element is None:
Expand Down

0 comments on commit 288d0e5

Please sign in to comment.