|
86 | 86 | # Defer all custom import for after initializing the forkserver and
|
87 | 87 | # ignoring the most annoying warnings
|
88 | 88 | import random
|
89 |
| - from uuid import uuid4 |
| 89 | + from pathlib import Path |
90 | 90 | from time import strftime
|
| 91 | + from uuid import uuid4 |
91 | 92 |
|
92 |
| - from pathlib import Path |
93 | 93 | from nipype import __version__ as _nipype_ver
|
94 | 94 | from templateflow import __version__ as _tf_ver
|
| 95 | + |
95 | 96 | from . import __version__
|
96 | 97 |
|
97 | 98 | if not hasattr(sys, "_is_pytest_session"):
|
|
126 | 127 | if not _disable_et:
|
127 | 128 | # Just get so analytics track one hit
|
128 | 129 | from contextlib import suppress
|
129 |
| - from requests import get as _get_url, ConnectionError, ReadTimeout |
| 130 | + |
| 131 | + from requests import ConnectionError, ReadTimeout |
| 132 | + from requests import get as _get_url |
130 | 133 |
|
131 | 134 | with suppress((ConnectionError, ReadTimeout)):
|
132 | 135 | _get_url("https://rig.mit.edu/et/projects/nipy/nipype", timeout=0.05)
|
@@ -215,7 +218,7 @@ def load(cls, settings, init=True, ignore=None):
|
215 | 218 | @classmethod
|
216 | 219 | def get(cls):
|
217 | 220 | """Return defined settings."""
|
218 |
| - from niworkflows.utils.spaces import SpatialReferences, Reference |
| 221 | + from niworkflows.utils.spaces import Reference, SpatialReferences |
219 | 222 |
|
220 | 223 | out = {}
|
221 | 224 | for k, v in cls.__dict__.items():
|
@@ -438,6 +441,7 @@ def init(cls):
|
438 | 441 |
|
439 | 442 | if cls._layout is None:
|
440 | 443 | import re
|
| 444 | + |
441 | 445 | from bids.layout import BIDSLayout, BIDSLayoutIndexer
|
442 | 446 |
|
443 | 447 | _db_path = cls.bids_database_dir or (cls.work_dir / cls.run_uuid / "bids_db")
|
|
0 commit comments