1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-24 11:52:29 +00:00
soil/soil
J. Fernando Sánchez 9749f4ca14 Fix multithreading
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.
2018-12-09 16:58:49 +01:00
..
agents Fix multithreading 2018-12-09 16:58:49 +01:00
web All tests pass 2018-12-08 18:17:21 +01:00
__init__.py Fix multithreading 2018-12-09 16:58:49 +01:00
__main__.py Fix py3.4 and pypi bugs 2017-10-19 18:28:17 +02:00
analysis.py Python3.7, testing and bug fixes 2018-12-08 18:53:06 +01:00
environment.py Fix multithreading 2018-12-09 16:58:49 +01:00
history.py Fix multithreading 2018-12-09 16:58:49 +01:00
settings.py WIP soil 2017-07-03 18:17:52 +02:00
simulation.py Fix multithreading 2018-12-09 16:58:49 +01:00
utils.py Python3.7, testing and bug fixes 2018-12-08 18:53:06 +01:00
VERSION Fix multithreading 2018-12-09 16:58:49 +01:00
version.py Fix pip installation 2018-05-04 09:59:31 +02:00