Skip to content

Commit

Permalink
Update forces.py (#69)
Browse files Browse the repository at this point in the history
A very annoying mistake in cylindrical confinement. It fixed position of the bottom cap at zero whatever value is actually given
  • Loading branch information
kipolovnikov committed Jun 24, 2023
1 parent 620acf6 commit 8052c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polychrom/forces.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def heteropolymer_SSW(
interactionMatrix: np.array
the **EXTRA** interaction strenghts between the different types.
Only upper triangular values are used. See "Force summary" above
Only upper triangular values are used. See "Force summary" abovec
monomerTypes: list of int or np.array
the type of each monomer, starting at 0
extraHardParticlesIdxs : list of int
Expand Down Expand Up @@ -726,7 +726,7 @@ def heteropolymer_SSW(
def cylindrical_confinement(sim_object, r, bottom=None, k=0.1, top=9999, name="cylindrical_confinement"):
"""As it says."""

if bottom:
if bottom == True:
warnings.warn(DeprecationWarning("Use bottom=0 instead of bottom = True! "))
bottom = 0

Expand Down

0 comments on commit 8052c59

Please sign in to comment.