Commit Graph

22 Commits (6c4f44b4cb5d553ecb78cd6961afc89deaf945a1)

Author SHA1 Message Date
J. Fernando Sánchez 6c4f44b4cb Partial MESA compatibility and several fixes
Documentation for the new APIs is still a work in progress :)
3 years ago
J. Fernando Sánchez 5d7e57675a WIP: mesa compatibility 3 years ago
J. Fernando Sánchez e860bdb922 v0.15.2
See CHANGELOG.md for a complete list of changes
3 years ago
J. Fernando Sánchez 05f7f49233 Refactoring v0.15.1
See CHANGELOG.md for a full list of changes

* Removed nxsim
* Refactored `agents.NetworkAgent` and `agents.BaseAgent`
* Refactored exporters
* Added stats to history
4 years ago
J. Fernando Sánchez 97835b3d10 Clean up exporters 5 years ago
J. Fernando Sánchez d1006bd55c WIP: exporters 5 years ago
J. Fernando Sánchez 9bc036d185 WIP: exporters 5 years ago
J. Fernando Sánchez 65f6aa72f3 fix timeout in FSM. Improve logs 5 years ago
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
J. Fernando Sánchez ff1df62eec All tests pass 6 years ago
J. Fernando Sánchez fc48ed7e09 Added history class
Now the environment does not deal with history directly, it delegates it to a
specific class. The analysis also uses history instances instead of either
using the database directly or creating a proxy environment.

This should make it easier to change the implementation in the future.

In fact, the change was motivated by the large size of the csv files in previous
versions. This new implementation only stores results in deltas, and it fills
any necessary values when needed.
6 years ago
J. Fernando Sánchez 73c90887e8 Fix pip installation 6 years ago
J. Fernando Sánchez 7d1c800490 Parallelism and granular exporting options
* Graphs are not saved by default (not backwards compatible)
* Modified newsspread examples
* More granular options to save results (exporting to CSV and GEXF are now
optional)
* Updated tutorial to include exporting options
* Removed references from environment to simulation
* Added parallelism to simulations (can be turned off with a flag or argument).
7 years ago
J. Fernando Sánchez a4b32afa2f Fix py3.4 and pypi bugs 7 years ago
J. Fernando Sánchez a7c51742f6 Improved docs
Fixed several bugs
Added convenience methods in soil.analysis
7 years ago
J. Fernando Sánchez 78364d89d5 Fix gephi representation. Add sqlite 7 years ago
J. Fernando Sánchez af76f54a28 Added rabbits 7 years ago
J. Fernando Sánchez dbc182c6d0 Compatibility with py3.4 7 years ago
J. Fernando Sánchez eafecc9e5e Make py3 compatibility explicit 7 years ago
J. Fernando Sánchez e8988015e2 Add more options to the command line 7 years ago
J. Fernando Sánchez 347d295b09 Updated to match NetworkX's 2.0 API 7 years ago
J. Fernando Sánchez e1be3a730e WIP soil
* Pandas integration
* Improved environment
* Logging and data dumps
* Tests
* Added Finite State Machine models
* Rewritten ipython notebook and documentation
7 years ago