it is working
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
|
||||
from . import (
|
||||
simple_market,
|
||||
econ_wrapper
|
||||
econ_wrapper,
|
||||
econ
|
||||
)
|
||||
|
||||
+1
-1
@@ -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()}
|
||||
|
||||
Reference in New Issue
Block a user