khanna-lab / cadre

Other
0 stars 0 forks source link

Recording tick of agent exit #91

Closed khanna7 closed 1 year ago

khanna7 commented 2 years ago

https://github.com/khanna-lab/cadre/blob/006004000134850e7f8864740a65735c7884a7e4/python/pycadre/cadre_model.py#L214-L222

I am attempting to record the agent exit tick as shown here. But, this event never gets recorded in the agent log because the agent is taken out of the context and hence its attributes are no longer recorded. Any thoughts on how I can get this to work?

ncollier commented 2 years ago

In the p in exits loop you could call self.agent_logger.log_row passing it the p attributes.