From b6a5dc56a04094a82a13c53960e4c800fea87f65 Mon Sep 17 00:00:00 2001 From: James Flynn Date: Mon, 19 Aug 2024 17:42:21 +0100 Subject: [PATCH] Fix for issue #1266, removed array initialization with None --- open_spiel/python/algorithms/efr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/open_spiel/python/algorithms/efr.py b/open_spiel/python/algorithms/efr.py index 8880c564b0..1976d33ed3 100644 --- a/open_spiel/python/algorithms/efr.py +++ b/open_spiel/python/algorithms/efr.py @@ -808,7 +808,7 @@ def return_cs_partial_sequence(num_actions, history, prior_legal_actions): information set. """ prior_actions_in_memory = history - external_memory_weights = [None] + external_memory_weights = [] for i in range(len(history)): possible_memory_weight = np.zeros(len(history)) @@ -851,7 +851,7 @@ def return_cs_partial_sequence_orginal( information set. """ prior_actions_in_memory = history - external_memory_weights = [None] + external_memory_weights = [] for i in range(len(history)): possible_memory_weight = np.zeros(len(history)) @@ -891,7 +891,7 @@ def return_twice_informed_partial_sequence( all TIPS deviations that are realizable at theinformation set. """ prior_actions_in_memory = history - memory_weights = [None] + memory_weights = [] for i in range(len(history)): possible_memory_weight = np.zeros(len(history))