.. image:: https://travis-ci.org/SFB-ELAINE/ckanext-papaya.svg?branch=master
:target: https://travis-ci.org/SFB-ELAINE/ckanext-papaya
===============
ckanext-papaya
This is an extension for CKAN that uses Papaya
(https://github.com/rii-mango/Papaya) to provide views for NIFTI (.nii) and
DICOM (.dcm) file formats. It provides views for both single DICOM files as well
as DICOM directories uploaded to CKAN as a ZIP file.
Requirements
Tested with CKAN 2.9.0a.
Installation
To install ckanext-papaya:
Activate your CKAN virtual environment, for example::
. /usr/lib/ckan/default/bin/activate
Install the ckanext-papaya Python package into your virtual environment::
pip install ckanext-papaya
Add papaya to the ckan.plugins setting in your CKAN
config file (by default the config file is located at
/etc/ckan/default/production.ini). To avoid having the Papaya viewer
enabled for all ZIP files, regardless of whether they contain DICOM files,
do not add papaya to ckan.views.default_views.
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu::
sudo service apache2 reload
Config settings
None at present. NIFTI files and DICOM directories tend to be rather large,
so you may have to increase the maximum resource size to allow users to upload
these file formats.
Developer installation
To install ckanext-papaya for development, activate your CKAN virtualenv and
do::
git clone https://github.com//ckanext-papaya.git
cd ckanext-papaya
python setup.py develop
pip install -r dev-requirements.txt
Tests
To run the tests, do::
nosetests --nologcapture --with-pylons=test.ini
To run the tests and produce a coverage report, first make sure you have
coverage installed in your virtualenv (pip install coverage) th