No description
Find a file
2023-02-10 16:27:10 +01:00
doc Python3 Updates 2022-03-02 15:21:39 +01:00
examples Python3 Updates 2022-03-02 15:21:39 +01:00
model Initial commit 2016-08-04 17:38:43 +02:00
models Initial commit 2016-08-04 17:38:43 +02:00
src Unialized tracers + added a visualizer for XML traces 2023-02-10 16:27:10 +01:00
test Code Injection Fix 2022-12-16 11:50:25 +01:00
.gitignore Python3 Updates 2022-03-02 15:21:39 +01:00
build.sh Initial commit 2016-08-04 17:38:43 +02:00
install_mpi4py.sh Initial commit 2016-08-04 17:38:43 +02:00
LICENSE Initial commit 2016-08-04 17:38:43 +02:00
notes.txt Updated release notes 2017-04-06 08:26:14 +02:00
NOTICE Initial commit 2016-08-04 17:38:43 +02:00
README.md Updated README with the performance notes 2017-04-06 08:29:18 +02:00

Installation

You can easily install PythonPDEVS with the following command.

cd src
python setup.py install --user

Performance

For optimal performance results, we recommend the use of PyPy.

By default, PythonPDEVS is optimized for distributed simulation, therefore doing a lot of additional bookkeeping. For optimal performance in local simulations, we recommend the use of the minimal simulation kernel instead: just update all imports from

from pypdevs.simulator import Simulator
from pypdevs.DEVS import AtomicDEVS, CoupledDEVS

to

from pypdevs.minimal import Simulator
from pypdevs.minimal import AtomicDEVS, CoupledDEVS

Note that this disables many features.

Distributed simulation (optional)

To use distributed simulation capabilities, run the script install_mpi4py.sh to install the necessary MPI library and bindings.

Documentation

Detailed documentation of the installation and use of PythonPDEVS can be found in the PythonPDEVS documentation.