Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 12f7023

Browse filesBrowse files
authored
Merge branch 'master' into fix/merge_rois_zero_d_array
2 parents 2c8017d + fe20d45 commit 12f7023
Copy full SHA for 12f7023

Some content is hidden

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

58 files changed

+184
-120
lines changed

‎.git-blame-ignore-revs

Copy file name to clipboardExpand all lines: .git-blame-ignore-revs
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Fri Feb 21 14:06:53 2025 -0500 - markiewicz@stanford.edu - sty: black [ignore-rev]
2+
8ed2b2306aeb7d89de4958b5293223ffe27a4f34
3+
# Tue Apr 13 10:16:17 2021 -0400 - markiewicz@stanford.edu - STY: black
4+
b1690d5beb391e08c1e5463f1e3c641cf1e9f58e
15
# Thu Oct 31 10:01:38 2024 -0400 - effigies@gmail.com - STY: black [ignore-rev]
26
bd0d5856d183ba3918eda31f80db3b1d4387c55c
37
# Thu Mar 21 13:34:09 2024 -0400 - effigies@gmail.com - STY: black [ignore-rev]

‎nipype/caching/tests/test_memory.py

Copy file name to clipboardExpand all lines: nipype/caching/tests/test_memory.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/external/cloghandler.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/info.py
+2-1Lines changed: 2 additions & 1 deletion
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
"""
@@ -149,6 +149,7 @@ def get_nipype_gitversion():
149149
"acres",
150150
"etelemetry>=0.3.1",
151151
"looseversion!=1.2",
152+
"gputil>=1.4.0",
152153
"puremagic",
153154
]
154155

‎nipype/interfaces/ants/registration.py

Copy file name to clipboardExpand all lines: nipype/interfaces/ants/registration.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/interfaces/ants/resampling.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/ants/visualization.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/bru2nii.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/camino/__init__.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/cmtk/base.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/interfaces/diffusion_toolkit/dti.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/diffusion_toolkit/odf.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/diffusion_toolkit/postproc.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/dipy/base.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/interfaces/freesurfer/longitudinal.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/freesurfer/model.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/interfaces/freesurfer/petsurfer.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/freesurfer/preprocess.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/freesurfer/registration.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/freesurfer/utils.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/io.py
+7-7Lines changed: 7 additions & 7 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/mixins/reporting.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/interfaces/nipy/base.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/interfaces/nitime/base.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/interfaces/spm/preprocess.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/utility/base.py
+3-3Lines changed: 3 additions & 3 deletions
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

Copy file name to clipboardExpand all lines: nipype/interfaces/utility/csv.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/engine/nodes.py
+6-1Lines changed: 6 additions & 1 deletion
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):
@@ -820,6 +820,11 @@ def update(self, **opts):
820820
"""Update inputs"""
821821
self.inputs.update(**opts)
822822

823+
def is_gpu_node(self):
824+
return bool(getattr(self.inputs, 'use_cuda', False)) or bool(
825+
getattr(self.inputs, 'use_gpu', False)
826+
)
827+
823828

824829
class JoinNode(Node):
825830
"""Wraps interface objects that join inputs into a list.

‎nipype/pipeline/engine/tests/test_engine.py

Copy file name to clipboardExpand all lines: nipype/pipeline/engine/tests/test_engine.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/engine/tests/test_join.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/engine/tests/test_utils.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/engine/tests/test_workflows.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/plugins/condor.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/plugins/dagman.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/plugins/debug.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/plugins/ipython.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/plugins/linear.py
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: nipype/pipeline/plugins/lsf.py
+1-2Lines changed: 1 addition & 2 deletions
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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.