From 68d3ca1e1620619668c2c118ff521cdb0f529062 Mon Sep 17 00:00:00 2001 From: jdc Date: Wed, 19 Jul 2023 11:48:03 -0400 Subject: [PATCH] =?UTF-8?q?=E2=80=A2=20emcomposition.py=20=20=20-=20refact?= =?UTF-8?q?ored=20to=20use=20local=20args=20until=20super()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- psyneulink/library/compositions/emcomposition.py | 2 +- tests/composition/test_emcomposition.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/psyneulink/library/compositions/emcomposition.py b/psyneulink/library/compositions/emcomposition.py index 559e5c15cca..16b5bb0560b 100644 --- a/psyneulink/library/compositions/emcomposition.py +++ b/psyneulink/library/compositions/emcomposition.py @@ -1221,7 +1221,7 @@ def _parse_fields(self, field_weights = np.atleast_1d(field_weights) # Fill out and normalize all field_weights if len(field_weights) == 1: - parsed_field_weights = np.repeat(field_weights/np.sum(field_weights), len(self.entry_template)) + parsed_field_weights = np.repeat(field_weights / np.sum(field_weights), len(self.entry_template)) else: parsed_field_weights = np.array(field_weights) / np.sum(field_weights) # # Rescale field_weights to be proportional to the number of fields <- FIX CORRECT? diff --git a/tests/composition/test_emcomposition.py b/tests/composition/test_emcomposition.py index 94dc350f94a..d285d918626 100644 --- a/tests/composition/test_emcomposition.py +++ b/tests/composition/test_emcomposition.py @@ -384,8 +384,6 @@ def test_simple_retrieval_without_storage_or_decay(self, - - # ***************************************************************************************************************** # ************************************* FROM AutodiffComposition ************************************************ # *****************************************************************************************************************