mirror of
https://github.com/gsi-upm/soil
synced 2024-12-22 16:28:11 +00:00
9749f4ca14
Multithreading needs pickling to work. Pickling/unpickling didn't work in some situations, like when the environment_agents parameter was left blank. This was due to two reasons: 1) agents and history didn't have a setstate method, and some of their attributes cannot be pickled (generators, sqlite connection) 2) the environment was adding generators (agents) to its state. This fixes the situation by restricting the keys that the environment exports when it pickles, and by adding the set/getstate methods in agents. The resulting pickles should contain enough information to inspect them (history, state values, etc), but very limited. |
||
---|---|---|
.. | ||
__init__.py | ||
BassModel.py | ||
BigMarketModel.py | ||
CounterModel.py | ||
DrawingAgent.py | ||
IndependentCascadeModel.py | ||
ModelM2.py | ||
SentimentCorrelationModel.py | ||
SISaModel.py |