Software for bachalor projekt, simulating antenna diversity selection algorithms.
The folder antenna_diversity
contains the framework for writing simulations, while examples
contains simulations used in the report.
pip3 install -r requirements.txt
If the pip3 utility is not in your path but python3
is, use the following.
python3 -m pip install -r requirements.txt
$ python3 -m antenna_diversity
$ python3 test.py
$ mypy antenna_diversity/
This can be done from a python shell:
import antenna_diversity.modulation as mod
import numpy as np
mod.Runner.plot(mod.PAM(4), np.array([-5, -10]), 10).savefig("out.png")
You can do this any which way you like, but here is with cProfile and snakeviz:
$ python -m cProfile -o hello.prof examples/hello_world.py
$ snakeviz hello.prof