From 77e7a98aa5c977c6a7d4f55c0778cbe63d27e117 Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Tue, 9 Jan 2024 09:15:12 +0100
Subject: [PATCH] bugfix

---
 modules/mol/alg/pymod/scoring.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/mol/alg/pymod/scoring.py b/modules/mol/alg/pymod/scoring.py
index b4ce2f605..21ac448c9 100644
--- a/modules/mol/alg/pymod/scoring.py
+++ b/modules/mol/alg/pymod/scoring.py
@@ -1629,8 +1629,8 @@ class Scorer:
         # - simple average
         # - average weighted by native_contacts
         # - the two above including nonmapped_contact_interfaces => set DockQ to 0.0
-        scores = np.array([self._dockq_scores])
-        weights = np.array([self._nnat])
+        scores = np.array(self._dockq_scores)
+        weights = np.array(self._nnat)
         if len(scores) > 0:
             self._dockq_ave = np.mean(scores)
         else:
-- 
GitLab