Egttools

Latest version: v0.1.13.5

Safety actively analyzes 714973 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.1.9

Added

- Added `plot_replicator_dynamics_in_simplex` and `plot_moran_dynamics_in_simplex` to simplify the plotting of 2
Simplexes when using `replicator_equation` and `StochDynamics` provided in `egttools`.
- Added an extra example to the docs to showcase the simplified plotting.

Fixed

- Fixed wrong numpy use in `egttools.utils.calculate_stationary_distribution`. Instead of `numpy.eig` the correct use
is `numpy.linalg.eig`.
- Fixed issue with plotting edges which have random drift.
Before `egttools.plotting.helpers.calculate_stationary_points` would logically find many roots in an edge with random
drift and `Simplex2D.draw_stationary_points` would attempt to draw all of them. Now, we first search of edges in which
there is random drift, and mask them, so that no stationary points nor trajectories are plot in the edge. Instead, we
draw a `dashed` line to represent the random drift.

Changed

- Updated `Readme.md` to use the simplified `plot_replicator_dynamics_in_simplex` in the example of 2 Simplex plotting.

0.1.8

Added

- Added `Simplex2D` class which can be used to plot the evolutionary dynamics in a 2-Simplex.
- Added `OneShotCRD` game.
- Added `egttools.utils.calculate_stationary_distribution_non_hermitian` which uses `scipy.linalg.schur` instead
of `numpy.linalg.eig`. This function should be used when the transition matrix is not Hermitian (not symmetric if all
the values are real). This may happen when studying the full state-space in a simplex of higher than 3 dimensions.

Fixed

- Fixed issue with extending `AbstractGame` in Python.
- Fixed bug in `egttools.utils.get_payoff_function`.

Changed

- Updated output of `StochDynamics.transition_and_fixation_matrix` so that the correct fixation probabilities are
returned, instead of `fixation_probabilities/(1/Z)`.
- `draw_stationary_distribution` was also updated so that it expects the fixation probabilities as input and
not `fixation_probabilities/(1/Z)`.
- Several improvements in documentation and docstrings.

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.