Skip to content

Commit

Permalink
Merge pull request #62 from jgors/master
Browse files Browse the repository at this point in the history
add mod_ files for nibabel, nipy, nipype
  • Loading branch information
yarikoptic committed Sep 25, 2015
2 parents 3cbc2df + cf93cb1 commit 8c91567
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 5 deletions.
24 changes: 24 additions & 0 deletions duecredit/injections/mod_nibabel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the duecredit package for the
# copyright and license terms.
#
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
"""Automatic injection of bibliography entries for nibabel module
"""


from ..entries import Url

# If defined, would determine from which to which version of the corresponding
# module to care about
min_version = None
max_version = None


def inject(injector):
injector.add('nibabel', None, Url('http://nipy.org/nibabel'),
description="Access a cacophony of neuro-imaging file formats",
tags=['implementation'])
23 changes: 23 additions & 0 deletions duecredit/injections/mod_nipy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the duecredit package for the
# copyright and license terms.
#
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
"""Automatic injection of bibliography entries for nipy module
"""

from ..entries import Doi

# If defined, would determine from which to which version of the corresponding
# module to care about
min_version = None
max_version = None


def inject(injector):
injector.add('nipy', None, Doi('10.1016/S1053-8119(09)72223-2'),
description="NIPY: an open library and development framework for FMRI data analysis",
tags=['implementation'])
15 changes: 10 additions & 5 deletions duecredit/injections/mod_nipype.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ def inject(injector):
description='FSL.',
tags=['implementation'])

#http://www.fil.ion.ucl.ac.uk/spm/
# not sure what primary spm citation is...couldn't find on website.
#injector.add('nipype.interfaces', 'spm', Doi(''),
#description='',
#tags=['implementation'])
#http://www.fil.ion.ucl.ac.uk/spm
injector.add('nipype.interfaces', 'spm', BibTeX("""
@book{FrackowiakFristonFrithDolanMazziotta1997,
author={R.S.J. Frackowiak, K.J. Friston, C.D. Frith, R.J. Dolan, and J.C. Mazziotta},
title={Human Brain Function},
publisher={Academic Press USA}
year={1997},
}
"""), description='The fundamental text on Statistical Parametric Mapping (SPM)',
tags=['implementation'])

#http://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferMethodsCitation
# there are a bunch, not sure what is primary
Expand Down
2 changes: 2 additions & 0 deletions duecredit/tests/test_injections.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ def test_get_modules_for_injection():
'mod_dipy',
'mod_mdp',
'mod_mne',
'mod_nibabel',
'mod_nipy',
'mod_nipype',
'mod_numpy',
'mod_pandas',
Expand Down

0 comments on commit 8c91567

Please sign in to comment.