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.
 
 
 
 
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.
5 years ago
docs Fix quickstart.rst markdown code 5 years ago
examples remove leftover import in example 5 years ago
soil Fix multithreading 5 years ago
tests Fix multithreading 5 years ago
.dockerignore Update dockerignore 5 years ago
.gitignore WIP soil 7 years ago
.gitlab-ci.yml Fix CI. Skip testing long examples 5 years ago
Dockerfile Python3.7, testing and bug fixes 5 years ago
LICENSE Create LICENSE 8 years ago
MANIFEST.in WIP soil 7 years ago
Makefile All tests pass 5 years ago
README.md Improved docs 7 years ago
debug.py WIP soil 7 years ago
docker-compose.yml Python3.7, testing and bug fixes 5 years ago
logo_gsi.png added logos 7 years ago
logo_gsi.svg Added GSI logo 7 years ago
requirements.txt Added history class 6 years ago
setup.cfg Python3.7, testing and bug fixes 5 years ago
setup.py merge visualization branch 5 years ago
test-requirements.txt Python3.7, testing and bug fixes 5 years ago

README.md

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