Skip to content

Commit b7c3862

Browse files
committed
RF: move import/use of due into __init__.py so info.py could stay without relative imports
1 parent b17b76f commit b7c3862

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

nipype/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717

1818
from .fixes.numpy.testing import nosetester
1919

20+
# Use duecredit (duecredit.org) to provide a citation to relevant work to
21+
# be cited. This does nothing, unless the user has duecredit installed,
22+
# And calls this with duecredit (as in `python -m duecredit script.py`):
23+
from .due import due, Doi
24+
due.cite(Doi("10.3389/fninf.2011.00013"),
25+
description="A flexible, lightweight and extensible neuroimaging data"
26+
" processing framework in Python",
27+
tags=["nipype"],)
28+
2029
try:
2130
import faulthandler
2231
faulthandler.enable()

nipype/info.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
settings in setup.py, the nipy top-level docstring, and for building the
33
docs. In setup.py in particular, we exec this file, so it cannot import nipy
44
"""
5-
from .due import due, Doi
65

76
# nipy version information. An empty _version_extra corresponds to a
87
# full release. '.dev' as a _version_extra string means this is a development
@@ -102,14 +101,6 @@ def get_nipype_gitversion():
102101
* share your processing workflows with the community
103102
"""
104103

105-
# Use duecredit (duecredit.org) to provide a citation to relevant work to
106-
# be cited. This does nothing, unless the user has duecredit installed,
107-
# And calls this with duecredit (as in `python -m duecredit script.py`):
108-
due.cite(Doi("10.3389/fninf.2011.00013"),
109-
description="A flexible, lightweight and extensible neuroimaging data"
110-
" processing framework in Python",
111-
tags=["nipype"],)
112-
113104
# versions
114105
NIBABEL_MIN_VERSION = '2.0.1'
115106
NETWORKX_MIN_VERSION = '1.7'

0 commit comments

Comments
 (0)