This python module contains all helper functions and classes that are helpful to run experiments with the InPhase system.
This copies the module to /usr/...
so you can use it system-wide in Python 3 via import inphase
:
- Clone this repository
- Change directory into the cloned repository
sudo python3 setup.py install
If you want to develop this module you can instruct the setup not to copy the module to /usr/...
but just link it there. Any changes inside this repository are then available system-wide instantly:
sudo python3 setup.py develop
(instead ofinstall
)
- Run
nosetests --with-coverage
to run unit tests and generate a coverage report - Run
coverage report -m
to display test coverage of the inphase module
Two example usages are provided in the examples
folder.
live_distance.py
connects via a serial interface to a sensor node and receives raw measurement data. It then computes the distance and prints it to the terminal.
testbed_example.py
is a more complex example. It shows how to record measurement data for later use.