in safety_gym/envs/world.py [0:0]
def rebuild(self, config={}, state=True):
''' Build a new sim from a model if the model changed '''
if state:
old_state = self.sim.get_state()
#self.config.update(deepcopy(config))
#self.parse(self.config)
self.parse(config)
self.build()
if state:
self.sim.set_state(old_state)
self.sim.forward()