Skip to content

Commit

Permalink
Produce n=2 when ports are not capped (#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclark5 committed Dec 12, 2022
1 parent 82977a2 commit 8e48eb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mbuild/lib/recipes/alkane.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def __init__(self, n=3, cap_front=True, cap_end=True):
)
self.add(chain["up"], "up", containment=False)
else:
chain = CH2()
chain = mb.recipes.Polymer(monomers=[CH2()])
chain.build(2, add_hydrogens=False)
self.add(chain, "chain")
self.add(chain["down"], "down", containment=False)
self.add(chain["up"], "up", containment=False)
Expand Down

0 comments on commit 8e48eb4

Please sign in to comment.