it is working

This commit is contained in:
2023-01-14 10:57:38 +01:00
parent 692b932302
commit 058eea02b2
6 changed files with 33 additions and 32 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
from . import (
simple_market,
econ_wrapper
econ_wrapper,
econ
)
+1 -1
View File
@@ -266,7 +266,7 @@ class Econ(BaseEnvironment):
for agent in self.world.agents:
if not self._persist_between_resets:
agent.set_setup(False) # resets agent states
if not agent.is_setup(): # agent has not been setup for scenario
if not agent.is_setup: # agent has not been setup for scenario
agent.state["inventory"] = {k: 0 for k in agent.inventory.keys()}
agent.state["escrow"] = {k: 0 for k in agent.inventory.keys()}
agent.state["endogenous"] = {k: 0 for k in agent.endogenous.keys()}