Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 0bc121a

Browse files
committed
STY: change package import order according to isort
1 parent 6cc9c07 commit 0bc121a

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

dmriprep/cli.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# -*- coding: utf-8 -*-
22

33
"""Console script for dmriprep."""
4+
import os
45
import sys
6+
import warnings
7+
58
import click
6-
from . import run
9+
710
from . import io
11+
from . import run
812
from .data import get_dataset
9-
import os
10-
import warnings
1113

1214
# Filter warnings that are visible whenever you import another package that
1315
# was compiled against an older numpy than is installed.

dmriprep/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
BIDS-functions to return inputs for the run.py functions.
33
44
"""
5-
from glob import glob
65
import os
76
import os.path as op
7+
from glob import glob
8+
89
import bids
910

1011

dmriprep/qc.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
import nibabel as nib
2-
import numpy as np
1+
import base64
32
import os.path as op
4-
from dipy.segment.mask import median_otsu
53
from io import BytesIO
6-
from nipype.utils.filemanip import save_json, load_json
7-
import base64
4+
85
import matplotlib
96
matplotlib.use('agg')
107
import matplotlib.pyplot as plt
8+
import nibabel as nib
9+
import numpy as np
10+
11+
from dipy.segment.mask import median_otsu
12+
from nipype.utils.filemanip import save_json, load_json
1113

1214

1315
def reorient_array(data, aff):

dmriprep/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import os.path as op
21
import os
2+
import os.path as op
33
from shutil import copyfile
44

55

0 commit comments

Comments
 (0)