Download Concert Documentation
Transcript
CHAPTER 2 Developer documentation 2.1 Development 2.1.1 Writing devices Get the code Concert is developed using Git on the popular GitHub platform. To clone the repository call: $ git clone https://github.com/ufo-kit/concert To get started you are encouraged to install the development dependencies via pip: $ cd concert $ pip install -r requirements.txt After that you can simply install the development source with $ make install Run the tests The core of Concert is tested using Python’s standard library unittest module and nose. To run all tests, you can call nose directly in the root directory or run make with the check argument $ make check Some tests take a lot of time to complete and are marked with the @slow decorator. To skip them during regular development cycles, you can run $ make check-fast You are highly encouraged to add new tests when you are adding a new feature to the core or fixing a known bug. Basic concepts The core abstraction of Concert is a Parameter. A parameter has at least a name but most likely also associated setter and getter callables. Moreover, a parameter can have units and limiters associated with it. The modules related to device creation are found here 17