CADLabs / radCAD

A Python framework for designing, testing, and validating complex systems through modelling and simulation.

Home Page:https://cadcad.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Policy Function can mutate state that is passed to State Update Function

BenSchZA opened this issue · comments

Currently, a Policy Function can mutate the state that is then passed to a State Update Function. One possible solution: two state copies should be created and passed independently to the Policy and State Update Functions.

See

substate_copy = pickle.loads(pickle.dumps(substate, -1)) if deepcopy else substate.copy()

Closed by #54