You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
6 years ago
..
agents Fix multithreading 6 years ago
web All tests pass 6 years ago
VERSION Fix multithreading 6 years ago
__init__.py Fix multithreading 6 years ago
__main__.py Fix py3.4 and pypi bugs 7 years ago
analysis.py Python3.7, testing and bug fixes 6 years ago
environment.py Fix multithreading 6 years ago
history.py Fix multithreading 6 years ago
settings.py WIP soil 7 years ago
simulation.py Fix multithreading 6 years ago
utils.py Python3.7, testing and bug fixes 6 years ago
version.py Fix pip installation 6 years ago