Skip to content

Commit

Permalink
Merge pull request #5 from mosdef-hub/main
Browse files Browse the repository at this point in the history
Produce n=2 when ports are not capped (mosdef-hub#1069)
  • Loading branch information
thangckt authored Dec 13, 2022
2 parents b755f09 + 8e48eb4 commit 9999e5a
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 9999e5a

Please sign in to comment.