Skip to content

Commit

Permalink
membraneCenterZ was being ignored (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
peastman authored Oct 28, 2024
1 parent a6f6430 commit b2cd2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdbfixer/pdbfixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ def addMembrane(self, lipidType='POPC', membraneCenterZ=0*unit.nanometer, minimu
nChains = sum(1 for _ in self.topology.chains())
modeller = app.Modeller(self.topology, self.positions)
forcefield = self._createForceField(self.topology, True)
modeller.addMembrane(forcefield, lipidType=lipidType, minimumPadding=minimumPadding, positiveIon=positiveIon, negativeIon=negativeIon, ionicStrength=ionicStrength)
modeller.addMembrane(forcefield, lipidType=lipidType, membraneCenterZ=membraneCenterZ, minimumPadding=minimumPadding, positiveIon=positiveIon, negativeIon=negativeIon, ionicStrength=ionicStrength)
self.topology = modeller.topology
self.positions = modeller.positions
self._renameNewChains(nChains)
Expand Down

0 comments on commit b2cd2c4

Please sign in to comment.