/fijibin

Life-Line of Fiji for easy inclusion in python projects.

Primary LanguagePythonMIT LicenseMIT

Build Status

fijibin

This software will download the latest Life-Line version of Fiji, make the correct cross-platform binary available and provide a macro submodule which makes automation of Fiji trivial from python.

Video demo

Current Fiji Life-Line version in this package is 2014 November 25.

If you experience any trouble with this module, please submit an issue or send a pull request on github.

Install

pip install fijibin

Usage

>>> import fijibin
>>> fijibin.BIN
'/Users/arve/.bin/Fiji.app/Contents/MacOS/ImageJ-macosx'
>>> fijibin.FIJI_VERSION
'20141125'

fijibin.BIN will point to linux, mac or windows version, depending on the operating system detected via platform.

Macros

import fijibin.macro
macro.run(macro_string_or_list_of_strings)

Refetch binary

>>> from fijibin.fetch import fetch
>>> fetch()

See more in the API reference.

Development

Install dependencies and link development version of fijibin to pip:

git clone https://github.com/arve0/fijibin
cd fijibin
pip install -r requirements.txt

run test

tox

extra output, jump into pdb upon error

DEBUG=fijibin tox -- --pdb -s

build api reference

pip install -r docs/requirements.txt
make docs