Skip to content

Commit 53b2d91

Browse files
committed
add zenodo
1 parent 30b427d commit 53b2d91

File tree

3 files changed

+57
-47
lines changed

3 files changed

+57
-47
lines changed

.zenodo.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"title": "dMRIPrep: a robust preprocessing pipeline for diffusion MRI",
3+
"description": "<p>dMRIPrep is a robust and easy-to-use pipeline for preprocessing of dMRI data. The transparent workflow dispenses of manual intervention, thereby ensuring the reproducibility of the results.</p>",
4+
"creators": [
5+
{
6+
"name": "Richie-Halford, Adam",
7+
"affiliation": "University of Washington",
8+
"orcid": "0000-0001-9276-9084"
9+
},
10+
{
11+
"name": "Rokem, Ariel",
12+
"affiliation": "The University of Washington eScience Institute",
13+
"orcid": "0000-0003-0679-1985"
14+
},
15+
{
16+
"name": "Yeatman, Jason",
17+
"affiliation": "Stanford University",
18+
"orcid": "0000-0002-2686-1293"
19+
},
20+
{
21+
"name": "Joseph, Michael",
22+
"affiliation": "The Centre for Addiction and Mental Health",
23+
"orcid": "0000-0002-0068-230X"
24+
},
25+
{
26+
"name": "Mansour, Salim",
27+
"affiliation": "The Centre for Addiction and Mental Health"
28+
},
29+
{
30+
"name": "Keshavan, Anisha",
31+
"affiliation": "Child Mind Institute",
32+
"orcid": "0000-0003-3554-043X"
33+
}
34+
]

dmriprep/__about__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
Base module variables
3+
"""
4+
from ._version import get_versions
5+
__version__ = get_versions()['version']
6+
del get_versions
7+
8+
__packagename__ = "dmriprep"
9+
__credits__ = ("Contributors: please check the ``.zenodo.json`` file at the"
10+
"top-level folder of the repository")
11+
__url__ = "https://github.com/nipy/dmriprep"
12+
13+
DOWNLOAD_URL = (
14+
"https://github.com/nipy/dmriprep/{name}/archive/{ver}.tar.gz".format(
15+
name=__packagename__, ver=__version__
16+
)
17+
)

dmriprep/__init__.py

Lines changed: 6 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,17 @@
1+
#!/usr/bin/env python
12
# -*- coding: utf-8 -*-
23

34
"""Top-level package for dmriprep."""
45

5-
__author__ = """Anisha Keshavan"""
6-
__email__ = "[email protected]"
7-
__version__ = "0.1.0"
6+
from .__about__ import (
7+
__version__,
8+
__credits__,
9+
__packagename__
10+
)
811

9-
import errno
10-
import logging
11-
import os
1212
import warnings
1313

1414
# Filter warnings that are visible whenever you import another package that
1515
# was compiled against an older numpy than is installed.
1616
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
1717
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")
18-
19-
from . import qc
20-
21-
module_logger = logging.getLogger(__name__)
22-
23-
# get the log level from environment variable
24-
if "DMIRPREP_LOGLEVEL" in os.environ:
25-
loglevel = os.environ["DMRIPREP_LOGLEVEL"]
26-
module_logger.setLevel(getattr(logging, loglevel.upper()))
27-
else:
28-
module_logger.setLevel(logging.WARNING)
29-
30-
# create a file handler
31-
logpath = os.path.join(os.path.expanduser("~"), ".dmriprep", "dmriprep.log")
32-
33-
# Create the config directory if it doesn't exist
34-
logdir = os.path.dirname(logpath)
35-
try:
36-
os.makedirs(logdir)
37-
except OSError as e:
38-
pre_existing = e.errno == errno.EEXIST and os.path.isdir(logdir)
39-
if pre_existing:
40-
pass
41-
else:
42-
raise e
43-
44-
handler = logging.FileHandler(logpath, mode="w")
45-
handler.setLevel(logging.DEBUG)
46-
47-
# create a logging format
48-
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
49-
handler.setFormatter(formatter)
50-
51-
# add the handlers to the logger
52-
module_logger.addHandler(handler)
53-
module_logger.info("Started new dmriprep session")
54-
55-
from ._version import get_versions
56-
57-
__version__ = get_versions()["version"]
58-
del get_versions

0 commit comments

Comments
 (0)