Skip to content

Commit 4e2feda

Browse files
committed
maint: add crediting details
1 parent 7118cd2 commit 4e2feda

File tree

4 files changed

+102
-55
lines changed

4 files changed

+102
-55
lines changed

.zenodo.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
2+
{
3+
"title": "dMRIPrep: a robust preprocessing pipeline for diffusion MRI",
4+
"description": "<p>dMRIPrep is a robust and easy-to-use pipeline for preprocessing of diverse dMRI data. The transparent workflow dispenses of manual intervention, thereby ensuring the reproducibility of the results.</p>",
5+
"creators": [
6+
{
7+
"affiliation": "Stanford University",
8+
"name": "Lerma-Usabiaga, Garikoitz",
9+
"orcid": "0000-0001-9800-4816"
10+
},
11+
{
12+
"affiliation": "The University of Washington eScience Institute",
13+
"name": "Keshavan, Anisha",
14+
"orcid": "0000-0003-3554-043X"
15+
},
16+
{
17+
"affiliation": "The University of Washington eScience Institute",
18+
"name": "Richie-Halford, Adam",
19+
"orcid": "0000-0001-9276-9084"
20+
},
21+
{
22+
"affiliation": "The University of Washington eScience Institute",
23+
"name": "Rokem, Ariel",
24+
"orcid": "0000-0003-0679-1985"
25+
},
26+
{
27+
"affiliation": "Department of Psychology, Stanford University, CA, USA",
28+
"name": "Esteban, Oscar",
29+
"orcid": "0000-0001-8435-6191"
30+
}
31+
],
32+
"contributors": [
33+
{
34+
"affiliation": "The Centre for Addiction and Mental Health",
35+
"name": "Joseph, Michael",
36+
"orcid": "0000-0002-0068-230X",
37+
"type": "Researcher"
38+
},
39+
{
40+
"name": "nrajamani3",
41+
"type": "Researcher"
42+
}
43+
],
44+
"keywords": [
45+
"neuroimaging",
46+
"workflow",
47+
"pipeline",
48+
"preprocessing",
49+
"dMRI",
50+
"BIDS"
51+
],
52+
"license": "Apache-2.0",
53+
"related_identifiers": [
54+
{
55+
"identifier": "http://dmriprep.org",
56+
"relation": "isPartOf",
57+
"scheme": "url"
58+
},
59+
{
60+
"identifier": "10.1038/s41592-018-0235-4",
61+
"relation": "isPartOf",
62+
"scheme": "doi"
63+
}
64+
],
65+
"upload_type": "software"
66+
}

dmriprep/__about__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+
# vi: set ft=python sts=4 ts=4 sw=4 et:
3+
"""Base module variables."""
4+
from ._version import get_versions
5+
__version__ = get_versions()['version']
6+
del get_versions
7+
8+
__packagename__ = 'dmriprep'
9+
__copyright__ = 'Copyright 2019, The dMRIPrep developers'
10+
__credits__ = ('Contributors: please check the ``.zenodo.json`` file at the top-level folder'
11+
'of the repository')
12+
__url__ = 'https://github.com/nipreps/dmriprep'
13+
14+
DOWNLOAD_URL = (
15+
'https://github.com/nipreps/{name}/archive/{ver}.tar.gz'.format(
16+
name=__packagename__, ver=__version__))

dmriprep/__init__.py

Lines changed: 19 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,23 @@
1-
# -*- coding: utf-8 -*-
2-
31
"""Top-level package for dmriprep."""
2+
import warnings as _warnings
3+
from .__about__ import (
4+
__version__,
5+
__copyright__,
6+
__credits__,
7+
__packagename__,
8+
)
49

5-
__author__ = """Anisha Keshavan"""
6-
__email__ = '[email protected]'
7-
__version__ = '0.1.0'
8-
9-
import errno
10-
import logging
11-
import os
12-
import warnings
13-
14-
# Filter warnings that are visible whenever you import another package that
15-
# was compiled against an older numpy than is installed.
16-
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
17-
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")
18-
19-
from . import data
20-
from . import io
21-
from . import qc
22-
from . import run
23-
24-
module_logger = logging.getLogger(__name__)
25-
26-
# get the log level from environment variable
27-
if "DMIRPREP_LOGLEVEL" in os.environ:
28-
loglevel = os.environ['DMRIPREP_LOGLEVEL']
29-
module_logger.setLevel(getattr(logging, loglevel.upper()))
30-
else:
31-
module_logger.setLevel(logging.WARNING)
32-
33-
# create a file handler
34-
logpath = os.path.join(os.path.expanduser('~'), '.dmriprep', 'dmriprep.log')
35-
36-
# Create the config directory if it doesn't exist
37-
logdir = os.path.dirname(logpath)
38-
try:
39-
os.makedirs(logdir)
40-
except OSError as e:
41-
pre_existing = (e.errno == errno.EEXIST and os.path.isdir(logdir))
42-
if pre_existing:
43-
pass
44-
else:
45-
raise e
46-
47-
handler = logging.FileHandler(logpath, mode='w')
48-
handler.setLevel(logging.DEBUG)
4910

50-
# create a logging format
51-
formatter = logging.Formatter(
52-
'%(asctime)s - %(name)s - %(levelname)s - %(message)s'
53-
)
54-
handler.setFormatter(formatter)
11+
__all__ = [
12+
'__version__',
13+
'__copyright__',
14+
'__credits__',
15+
'__packagename__',
16+
]
5517

56-
# add the handlers to the logger
57-
module_logger.addHandler(handler)
58-
module_logger.info('Started new dmriprep session')
18+
# cmp is not used by fmriprep, so ignore nipype-generated warnings
19+
_warnings.filterwarnings('ignore', r'cmp not installed')
20+
_warnings.filterwarnings('ignore', r'This has not been fully tested. Please report any failures.')
21+
_warnings.filterwarnings('ignore', r"can't resolve package from __spec__ or __package__")
22+
_warnings.simplefilter('ignore', DeprecationWarning)
23+
_warnings.simplefilter('ignore', ResourceWarning)

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
url = https://github.com/nipreps/dmriprep
3-
author = The Nipy developers
3+
author = The dMRIPrep developers
44
author_email = [email protected]
55
maintainer = Oscar Esteban
66
maintainer_email = [email protected]

0 commit comments

Comments
 (0)