Python wrapper to run single ROC and module tests using a DTB.
- python2.7
- cython (http://cython.org/)
- numpy (http://www.numpy.org)
- pyROOT (http://root.cern.ch/drupal/content/pyroot)
- usb driver libftdi2xx (http://www.ftdichip.com/Drivers/D2XX.htm)
- libusb (http://www.libusb.org/)
To compile the library run:
python setup.py build_ext
To start pyxar, run:
./pyXar
Specify the input directory with:
./pyXar --dir PATH
Get the python version of the API and build it
mkdir build
cmake -DBUILD_python=ON ..
make install
Export the path to the library:
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:PATH/TO/API/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:PATH/TO/API/lib
export PYTHONPATH=$PYTHONPATH:PATH/TO/API/lib
To start pyxar using the API, run:
./pyXar --api