FabIO can, as any Python module, be installed from its sources, available on sourceforge but we advice to use binary packages provided for the most common platforms on sourceforge: Windows, MacOSX and Linux. Moreover FabIO is part of the common Linux distributions Ubuntu (since 11.10) and Debian7 where the package is named python-fabio and can be installed via:
# apt-get install python-fabio
If you are using MS Windows or MacOSX; binary version have been packaged. Windows installers are executable, just download the one corresponding to you python version and run it. MacOSX builds are zipped: unzip them at the right place.
For full functionality of Fabio the following modules need to be installed:
FabIO can be downloaded from the fable download page on sourceforge.net. Presently the source code has been distributed as a zip package and a compressed tarball. Download either one and unpack it.
http://sourceforge.net/projects/fable/files/fabio/
e.g.
tar xvzf fabio-0.1.4.tar.gz
or
unzip fabio-0.1.4.zip
all files are unpacked into the directory fabio-0.1.4. To install these do
cd fabio-0.1.4
and install fabio with
python setup.py build
sudo python setup.py install
most likely you will need to gain root privileges (with sudo in front of the command) to install the built package.
The newest development version can be obtained by checking it out from the subversion (SVN) repository:
svn checkout https://svn.sourceforge.net/svnroot/fable/fabio/trunk fabio
cd fabio
python setup.py build
sudo python setup.py install
For Ubuntu/Debian users, you will need:
sudo apt-get install python-imaging python-imaging-tk python-numpy
We provide also a debian-package builder based on stdeb:
sudo apt-get install python-stdeb
./build-deb.sh
which builds a debian package and installs it in a single command. Handy for testing.
FabIO has a comprehensive test-suite to ensure non regression. When you run the test for the first time, many test images will be download and converted into various compressed format like gzip and bzip2 (this takes a lot of time).
Be sure you have an internet connection and your environment variable http_proxy is correctly set-up. For example if you are behind a firewall/proxy:
export http_proxy=http://proxy.site.org:3128
To run the test:
python setup.py test
Many tests are there to deal with malformed files, don’t worry if the programs complains in warnings about “bad files”, it is done on purpose to ensure robustness in FabIO.
FabIO comes with 25 test-suites (110 tests in total) representing a coverage of 60%. This ensures both non regression over time and ease the distribution under different platforms: FabIO runs under Linux, MacOSX and Windows (in each case in 32 and 64 bits) with python versions 2.6 and 2.7.
Name | Stmts | Exec | Cover |
---|---|---|---|
fabio/GEimage |
|
|
|
fabio/HiPiCimage |
|
|
|
fabio/OXDimage |
|
|
|
fabio/TiffIO |
|
|
|
fabio/__init__ |
|
|
|
fabio/adscimage |
|
|
|
fabio/binaryimage |
|
|
|
fabio/bruker100image |
|
|
|
fabio/brukerimage |
|
|
|
fabio/cbfimage |
|
|
|
fabio/compression |
|
|
|
fabio/converters |
|
|
|
fabio/dm3image |
|
|
|
fabio/edfimage |
|
|
|
fabio/fabioimage |
|
|
|
fabio/fabioutils |
|
|
|
fabio/file_series |
|
|
|
fabio/fit2dmaskimage |
|
|
|
fabio/fit2dspreadsheetimage |
|
|
|
fabio/hdf5image |
|
|
|
fabio/kcdimage |
|
|
|
fabio/mar345image |
|
|
|
fabio/marccdimage |
|
|
|
fabio/mrcimage |
|
|
|
fabio/openimage |
|
|
|
fabio/pilatusimage |
|
|
|
fabio/pixiimage |
|
|
|
fabio/pnmimage |
|
|
|
fabio/raxisimage |
|
|
|
fabio/readbytestream |
|
|
|
fabio/tifimage |
|
|
|
fabio/xsdimage |
|
|
|