Skip to content

Commit

Permalink
Fix for issue #1266, removed array initialization with None
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesflynn1 committed Aug 19, 2024
1 parent 7ff9e28 commit b6a5dc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions open_spiel/python/algorithms/efr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit b6a5dc5

Please sign in to comment.