Skip to content

Commit 59862c8

Browse files
authored
Merge branch 'master' into enh/cuda_support
2 parents 610f1cb + 0c67bb3 commit 59862c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+70
-104
lines changed

.git-blame-ignore-revs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Fri Feb 21 14:06:53 2025 -0500 - [email protected] - sty: black [ignore-rev]
2+
8ed2b2306aeb7d89de4958b5293223ffe27a4f34
3+
# Tue Apr 13 10:16:17 2021 -0400 - [email protected] - STY: black
4+
b1690d5beb391e08c1e5463f1e3c641cf1e9f58e
15
# Thu Oct 31 10:01:38 2024 -0400 - [email protected] - STY: black [ignore-rev]
26
bd0d5856d183ba3918eda31f80db3b1d4387c55c
37
# Thu Mar 21 13:34:09 2024 -0400 - [email protected] - STY: black [ignore-rev]

nipype/caching/tests/test_memory.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
""" Test the nipype interface caching mechanism
2-
"""
1+
"""Test the nipype interface caching mechanism"""
32

43
from .. import Memory
54
from ...pipeline.engine.tests.test_engine import EngineTestInterface

nipype/external/cloghandler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
12-
""" cloghandler.py: A smart replacement for the standard RotatingFileHandler
12+
"""cloghandler.py: A smart replacement for the standard RotatingFileHandler
1313
1414
ConcurrentRotatingFileHandler: This class is a log handler which is a drop-in
1515
replacement for the python standard log handler 'RotateFileHandler', the primary

nipype/info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" This file contains defines parameters for nipy that we use to fill
1+
"""This file contains defines parameters for nipy that we use to fill
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
"""

nipype/interfaces/ants/registration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""The ants module provides basic functions for interfacing with ants
2-
functions.
2+
functions.
33
"""
44

55
import os

nipype/interfaces/ants/resampling.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""ANTS Apply Transforms interface
2-
"""
1+
"""ANTS Apply Transforms interface"""
32

43
import os
54

nipype/interfaces/ants/visualization.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""The ants visualisation module provides basic functions based on ITK.
2-
"""
1+
"""The ants visualisation module provides basic functions based on ITK."""
32

43
import os
54

nipype/interfaces/bru2nii.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""The bru2nii module provides basic functions for dicom conversion
2-
"""
1+
"""The bru2nii module provides basic functions for dicom conversion"""
32

43
import os
54
from .base import (

nipype/interfaces/camino/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Camino top level namespace
4-
"""
3+
"""Camino top level namespace"""
54

65
from .connectivity import Conmat
76
from .convert import (

nipype/interfaces/cmtk/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
""" Base interface for cmtk """
3+
"""Base interface for cmtk"""
44

55
from ..base import LibraryBaseInterface
66
from ...utils.misc import package_check

nipype/interfaces/diffusion_toolkit/dti.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Provides interfaces to various commands provided by diffusion toolkit
4-
"""
3+
"""Provides interfaces to various commands provided by diffusion toolkit"""
54
import os
65
import re
76

nipype/interfaces/diffusion_toolkit/odf.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Provides interfaces to various commands provided by diffusion toolkit
4-
"""
3+
"""Provides interfaces to various commands provided by diffusion toolkit"""
54
import os
65
import re
76

nipype/interfaces/diffusion_toolkit/postproc.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Provides interfaces to various commands provided by diffusion toolkit
4-
"""
3+
"""Provides interfaces to various commands provided by diffusion toolkit"""
54

65
import os
76
from ..base import (

nipype/interfaces/dipy/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Base interfaces for dipy """
1+
"""Base interfaces for dipy"""
22

33
import os.path as op
44
import inspect

nipype/interfaces/freesurfer/longitudinal.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Provides interfaces to various longitudinal commands provided by freesurfer
4-
"""
3+
"""Provides interfaces to various longitudinal commands provided by freesurfer"""
54

65
import os
76

nipype/interfaces/freesurfer/model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
"""The freesurfer module provides basic functions for interfacing with
4-
freesurfer tools.
4+
freesurfer tools.
55
"""
66

77
import os

nipype/interfaces/freesurfer/petsurfer.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Provides interfaces to various commands for running PET analyses provided by FreeSurfer
4-
"""
3+
"""Provides interfaces to various commands for running PET analyses provided by FreeSurfer"""
54

65
import os
76

nipype/interfaces/freesurfer/preprocess.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Provides interfaces to various commands provided by FreeSurfer
4-
"""
3+
"""Provides interfaces to various commands provided by FreeSurfer"""
54
import os
65
import os.path as op
76
from glob import glob

nipype/interfaces/freesurfer/registration.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Provides interfaces to various longitudinal commands provided by freesurfer
4-
"""
3+
"""Provides interfaces to various longitudinal commands provided by freesurfer"""
54

65
import os
76
import os.path

nipype/interfaces/freesurfer/utils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Interfaces to assorted Freesurfer utility programs.
4-
"""
3+
"""Interfaces to assorted Freesurfer utility programs."""
54
import os
65
import re
76
import shutil

nipype/interfaces/io.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
""" Set of interfaces that allow interaction with data. Currently
4-
available interfaces are:
3+
"""Set of interfaces that allow interaction with data. Currently
4+
available interfaces are:
55
6-
DataSource: Generic nifti to named Nifti interface
7-
DataSink: Generic named output from interfaces to data store
8-
XNATSource: preliminary interface to XNAT
6+
DataSource: Generic nifti to named Nifti interface
7+
DataSink: Generic named output from interfaces to data store
8+
XNATSource: preliminary interface to XNAT
99
10-
To come :
11-
XNATSink
10+
To come :
11+
XNATSink
1212
"""
1313
import glob
1414
import fnmatch

nipype/interfaces/mixins/reporting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
""" class mixin and utilities for enabling reports for nipype interfaces """
3+
"""class mixin and utilities for enabling reports for nipype interfaces"""
44

55
import os
66
from abc import abstractmethod

nipype/interfaces/nipy/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
""" Base interface for nipy """
3+
"""Base interface for nipy"""
44

55
from ..base import LibraryBaseInterface
66
from ...utils.misc import package_check

nipype/interfaces/nitime/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
""" Base interface for nitime """
3+
"""Base interface for nitime"""
44

55
from ..base import LibraryBaseInterface
66

nipype/interfaces/spm/preprocess.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""SPM wrappers for preprocessing data
4-
"""
3+
"""SPM wrappers for preprocessing data"""
54
import os
65
from copy import deepcopy
76

nipype/interfaces/utility/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
"""
4-
# changing to temporary directories
5-
>>> tmp = getfixture('tmpdir')
6-
>>> old = tmp.chdir()
4+
# changing to temporary directories
5+
>>> tmp = getfixture('tmpdir')
6+
>>> old = tmp.chdir()
77
"""
88
import os
99
import re

nipype/interfaces/utility/csv.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""CSV Handling utilities
4-
"""
3+
"""CSV Handling utilities"""
54
import csv
65
from ..base import traits, TraitedSpec, DynamicTraitedSpec, File, BaseInterface
76
from ..io import add_traits

nipype/pipeline/engine/nodes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def run(self, updatehash=False):
452452
cached, updated = self.is_cached()
453453

454454
# If the node is cached, check on pklz files and finish
455-
if not force_run and (updated or (not updated and updatehash)):
455+
if cached and not force_run and (updated or updatehash):
456456
logger.debug("Only updating node hashes or skipping execution")
457457
inputs_file = op.join(outdir, "_inputs.pklz")
458458
if not op.exists(inputs_file):

nipype/pipeline/engine/tests/test_engine.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Tests for the engine module
4-
"""
3+
"""Tests for the engine module"""
54
from copy import deepcopy
65
from glob import glob
76
import os

nipype/pipeline/engine/tests/test_join.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Tests for join expansion
4-
"""
3+
"""Tests for join expansion"""
54
import pytest
65

76
from .... import config

nipype/pipeline/engine/tests/test_utils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Tests for the engine utils module
4-
"""
3+
"""Tests for the engine utils module"""
54
import os
65
from copy import deepcopy
76
import pytest

nipype/pipeline/engine/tests/test_workflows.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Tests for the engine workflows module
4-
"""
3+
"""Tests for the engine workflows module"""
54
from glob import glob
65
import os
76
from shutil import rmtree

nipype/pipeline/plugins/condor.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via Condor
2-
"""
1+
"""Parallel workflow execution via Condor"""
32

43
import os
54
from time import sleep

nipype/pipeline/plugins/dagman.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via Condor DAGMan
2-
"""
1+
"""Parallel workflow execution via Condor DAGMan"""
32

43
import os
54
import sys

nipype/pipeline/plugins/debug.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Debug plugin
4-
"""
3+
"""Debug plugin"""
54

65
import networkx as nx
76
from .base import PluginBase, logger

nipype/pipeline/plugins/ipython.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Parallel workflow execution via IPython controller
4-
"""
3+
"""Parallel workflow execution via IPython controller"""
54
from pickle import dumps
65

76
import sys

nipype/pipeline/plugins/linear.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
"""Local serial workflow execution
4-
"""
3+
"""Local serial workflow execution"""
54

65
import os
76
from .base import PluginBase, logger, report_crash, report_nodes_not_run, str2bool

nipype/pipeline/plugins/lsf.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via LSF
2-
"""
1+
"""Parallel workflow execution via LSF"""
32

43
import os
54
import re

nipype/pipeline/plugins/multiproc.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,11 @@ def _send_procs_to_workers(self, updatehash=False, graph=None):
379379
if self._local_hash_check(jobid, graph):
380380
continue
381381

382+
cached, updated = self.procs[jobid].is_cached()
382383
# updatehash and run_without_submitting are also run locally
383-
if updatehash or self.procs[jobid].run_without_submitting:
384+
if (cached and updatehash and not updated) or self.procs[
385+
jobid
386+
].run_without_submitting:
384387
logger.debug("Running node %s on master thread", self.procs[jobid])
385388
try:
386389
self.procs[jobid].run(updatehash=updatehash)

nipype/pipeline/plugins/oar.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via OAR http://oar.imag.fr
2-
"""
1+
"""Parallel workflow execution via OAR http://oar.imag.fr"""
32

43
import os
54
import stat

nipype/pipeline/plugins/pbs.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via PBS/Torque
2-
"""
1+
"""Parallel workflow execution via PBS/Torque"""
32

43
import os
54
from time import sleep

nipype/pipeline/plugins/pbsgraph.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via PBS/Torque
2-
"""
1+
"""Parallel workflow execution via PBS/Torque"""
32

43
import os
54
import sys

nipype/pipeline/plugins/sge.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via SGE
2-
"""
1+
"""Parallel workflow execution via SGE"""
32

43
import os
54
import pwd

nipype/pipeline/plugins/sgegraph.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via SGE
2-
"""
1+
"""Parallel workflow execution via SGE"""
32

43
import os
54
import sys

nipype/pipeline/plugins/slurmgraph.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via SLURM
2-
"""
1+
"""Parallel workflow execution via SLURM"""
32

43
import os
54
import sys

nipype/pipeline/plugins/somaflow.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Parallel workflow execution via PBS/Torque
2-
"""
1+
"""Parallel workflow execution via PBS/Torque"""
32

43
import os
54
import sys

0 commit comments

Comments
 (0)