1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-13 06:52:28 +00:00
Go to file
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
docs Fix quickstart.rst markdown code 2018-12-09 13:10:00 +01:00
examples remove leftover import in example 2018-12-08 20:35:02 +01:00
soil Fix multithreading 2018-12-09 16:58:49 +01:00
tests Fix multithreading 2018-12-09 16:58:49 +01:00
.dockerignore Update dockerignore 2018-12-08 19:13:56 +01:00
.gitignore WIP soil 2017-07-03 18:17:52 +02:00
.gitlab-ci.yml Fix CI. Skip testing long examples 2018-12-08 20:49:34 +01:00
debug.py WIP soil 2017-07-03 18:17:52 +02:00
docker-compose.yml Python3.7, testing and bug fixes 2018-12-08 18:53:06 +01:00
Dockerfile Python3.7, testing and bug fixes 2018-12-08 18:53:06 +01:00
LICENSE Create LICENSE 2016-05-30 11:35:09 +02:00
logo_gsi.png added logos 2017-01-28 11:37:52 +01:00
logo_gsi.svg Added GSI logo 2017-01-28 10:57:45 +01:00
Makefile All tests pass 2018-12-08 18:17:21 +01:00
MANIFEST.in WIP soil 2017-07-03 18:17:52 +02:00
README.md Improved docs 2017-10-19 18:06:33 +02:00
requirements.txt Added history class 2018-05-04 10:01:49 +02:00
setup.cfg Python3.7, testing and bug fixes 2018-12-08 18:53:06 +01:00
setup.py merge visualization branch 2018-12-07 18:28:19 +01:00
test-requirements.txt Python3.7, testing and bug fixes 2018-12-08 18:53:06 +01:00

SOIL

Soil is an extensible and user-friendly Agent-based Social Simulator for Social Networks. Learn how to run your own simulations with our documentation.

Follow our tutorial to develop your own agent models.

If you use Soil in your research, don't forget to cite this paper:

@inbook{soil-gsi-conference-2017,
    author = "S{\'a}nchez, Jes{\'u}s M. and Iglesias, Carlos A. and S{\'a}nchez-Rada, J. Fernando",
    booktitle = "Advances in Practical Applications of Cyber-Physical Multi-Agent Systems: The PAAMS Collection",
    doi = "10.1007/978-3-319-59930-4_19",
    editor = "Demazeau Y., Davidsson P., Bajo J., Vale Z.",
    isbn = "978-3-319-59929-8",
    keywords = "soil;social networks;agent based social simulation;python",
    month = "June",
    organization = "PAAMS 2017",
    pages = "234-245",
    publisher = "Springer Verlag",
    series = "LNAI",
    title = "{S}oil: {A}n {A}gent-{B}ased {S}ocial {S}imulator in {P}ython for {M}odelling and {S}imulation of {S}ocial {N}etworks",
    url = "https://link.springer.com/chapter/10.1007/978-3-319-59930-4_19",
    volume = "10349",
    year = "2017",
}

@Copyright GSI - Universidad Politécnica de Madrid 2017

SOIL