From 8052c597b0566f88a7b7ef80658a3f077e474a7e Mon Sep 17 00:00:00 2001 From: kipolovnikov <36499892+kipolovnikov@users.noreply.github.com> Date: Sat, 24 Jun 2023 23:12:18 +0200 Subject: [PATCH] Update forces.py (#69) A very annoying mistake in cylindrical confinement. It fixed position of the bottom cap at zero whatever value is actually given --- polychrom/forces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polychrom/forces.py b/polychrom/forces.py index 1f8fcf0..e2ab201 100644 --- a/polychrom/forces.py +++ b/polychrom/forces.py @@ -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 @@ -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