From 74b052267d3b5eccf34d8ae790930f28ebde6f7a Mon Sep 17 00:00:00 2001 From: Kkevsterrr Date: Thu, 12 Dec 2019 21:39:36 -0500 Subject: [PATCH] removed unused method --- actions/tree.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/actions/tree.py b/actions/tree.py index 4303fe6..c757bde 100644 --- a/actions/tree.py +++ b/actions/tree.py @@ -30,22 +30,6 @@ class ActionTree(): self.environment_id = None self.ran = False - def initialize(self, num_actions, environment_id, allow_terminal=True, disabled=None): - """ - Sets up this action tree with a given number of random actions. - Note that the returned action trees may have less actions than num_actions - if terminal actions are used. - """ - self.environment_id = environment_id - self.trigger = actions.trigger.Trigger(None, None, None, environment_id=environment_id) - if not allow_terminal or random.random() > 0.1: - allow_terminal = False - - for _ in range(num_actions): - new_action = self.get_rand_action(self.direction, disabled=disabled) - self.add_action(new_action) - return self - def __iter__(self): """ Sets up a preoder iterator for the tree.