From 76664b7a181f50716d870d803595c7786de8fd67 Mon Sep 17 00:00:00 2001 From: Jennifer A Clark Date: Wed, 28 Aug 2024 10:28:31 -0400 Subject: [PATCH] Use self.u_kn when verbose=True in MBAR (#539) --- pymbar/mbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymbar/mbar.py b/pymbar/mbar.py index 893a46a9..60f3a01b 100644 --- a/pymbar/mbar.py +++ b/pymbar/mbar.py @@ -293,7 +293,7 @@ def __init__( for k in range(K): for l in range(k): diffsum = 0 - uzero = u_kn[k, indices] - u_kn[l, indices] + uzero = self.u_kn[k, indices] - self.u_kn[l, indices] diffsum += np.dot(uzero, uzero) if diffsum < relative_tolerance: self.samestates.append([k, l])