From 7bf9de392f4eff9dccc83910a3a3f51a6b88dc3c Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Tue, 22 Jun 2021 09:02:53 +0200 Subject: [PATCH] STY: Make private member name consistent with the rest of them --- nipype/algorithms/confounds.py | 6 +++--- nipype/interfaces/afni/base.py | 2 +- nipype/interfaces/afni/utils.py | 4 ++-- nipype/interfaces/ants/segmentation.py | 2 +- nipype/interfaces/base/core.py | 4 ++-- nipype/interfaces/base/support.py | 2 +- nipype/interfaces/fsl/base.py | 2 +- nipype/interfaces/fsl/model.py | 2 +- nipype/interfaces/petpvc.py | 2 +- nipype/interfaces/quickshear.py | 2 +- nipype/interfaces/spm/base.py | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/nipype/algorithms/confounds.py b/nipype/algorithms/confounds.py index 18c268b461..476ade8dbe 100644 --- a/nipype/algorithms/confounds.py +++ b/nipype/algorithms/confounds.py @@ -104,7 +104,7 @@ class ComputeDVARS(BaseInterface): input_spec = ComputeDVARSInputSpec output_spec = ComputeDVARSOutputSpec - references_ = [ + _references = [ { "entry": BibTeX( """\ @@ -311,7 +311,7 @@ class FramewiseDisplacement(BaseInterface): input_spec = FramewiseDisplacementInputSpec output_spec = FramewiseDisplacementOutputSpec - references_ = [ + _references = [ { "entry": BibTeX( """\ @@ -556,7 +556,7 @@ class CompCor(SimpleInterface): input_spec = CompCorInputSpec output_spec = CompCorOutputSpec - references_ = [ + _references = [ { "tags": ["method", "implementation"], "entry": BibTeX( diff --git a/nipype/interfaces/afni/base.py b/nipype/interfaces/afni/base.py index 31a9f7585d..3f338eb0ce 100644 --- a/nipype/interfaces/afni/base.py +++ b/nipype/interfaces/afni/base.py @@ -151,7 +151,7 @@ class AFNICommand(AFNICommandBase): input_spec = AFNICommandInputSpec _outputtype = None - references_ = [ + _references = [ { "entry": BibTeX( "@article{Cox1996," diff --git a/nipype/interfaces/afni/utils.py b/nipype/interfaces/afni/utils.py index e4b6f37778..9c44a40fd8 100644 --- a/nipype/interfaces/afni/utils.py +++ b/nipype/interfaces/afni/utils.py @@ -1032,7 +1032,7 @@ class Edge3(AFNICommand): _cmd = "3dedge3" input_spec = Edge3InputSpec output_spec = AFNICommandOutputSpec - references_ = [ + _references = [ { "entry": BibTeX( """\ @@ -1341,7 +1341,7 @@ class FWHMx(AFNICommandBase): input_spec = FWHMxInputSpec output_spec = FWHMxOutputSpec - references_ = [ + _references = [ { "entry": BibTeX( "@article{CoxReynoldsTaylor2016," diff --git a/nipype/interfaces/ants/segmentation.py b/nipype/interfaces/ants/segmentation.py index 555cdd1777..33c92fc005 100644 --- a/nipype/interfaces/ants/segmentation.py +++ b/nipype/interfaces/ants/segmentation.py @@ -1734,7 +1734,7 @@ class KellyKapowski(ANTSCommand): input_spec = KellyKapowskiInputSpec output_spec = KellyKapowskiOutputSpec - references_ = [ + _references = [ { "entry": BibTeX( """\ diff --git a/nipype/interfaces/base/core.py b/nipype/interfaces/base/core.py index 57e889da9b..605021384a 100644 --- a/nipype/interfaces/base/core.py +++ b/nipype/interfaces/base/core.py @@ -161,7 +161,7 @@ class BaseInterface(Interface): _version = None _additional_metadata = [] _redirect_x = False - references_ = [] + _references = [] resource_monitor = True # Enabled for this interface IFF enabled in the config _etelemetry_version_data = None @@ -343,7 +343,7 @@ def _run_interface(self, runtime): def _duecredit_cite(self): """Add the interface references to the duecredit citations""" - for r in self.references_: + for r in self._references: r["path"] = self.__module__ due.cite(**r) diff --git a/nipype/interfaces/base/support.py b/nipype/interfaces/base/support.py index 88359354fd..df357481fb 100644 --- a/nipype/interfaces/base/support.py +++ b/nipype/interfaces/base/support.py @@ -322,7 +322,7 @@ def _outputs_help(cls): def _refs_help(cls): """Prints interface references.""" - references = getattr(cls, "references_", None) + references = getattr(cls, "_references", None) if not references: return [] diff --git a/nipype/interfaces/fsl/base.py b/nipype/interfaces/fsl/base.py index 34127cadef..351be33ade 100644 --- a/nipype/interfaces/fsl/base.py +++ b/nipype/interfaces/fsl/base.py @@ -151,7 +151,7 @@ class FSLCommand(CommandLine): input_spec = FSLCommandInputSpec _output_type = None - references_ = [ + _references = [ { "entry": BibTeX( "@article{JenkinsonBeckmannBehrensWoolrichSmith2012," diff --git a/nipype/interfaces/fsl/model.py b/nipype/interfaces/fsl/model.py index 15fb36f6c0..059c597ce6 100644 --- a/nipype/interfaces/fsl/model.py +++ b/nipype/interfaces/fsl/model.py @@ -1100,7 +1100,7 @@ class FLAMEO(FSLCommand): input_spec = FLAMEOInputSpec output_spec = FLAMEOOutputSpec - references_ = [ + _references = [ { "entry": BibTeX( "@article{BeckmannJenkinsonSmith2003," diff --git a/nipype/interfaces/petpvc.py b/nipype/interfaces/petpvc.py index 6d0b8f7e04..f315e9fc7c 100644 --- a/nipype/interfaces/petpvc.py +++ b/nipype/interfaces/petpvc.py @@ -155,7 +155,7 @@ class PETPVC(CommandLine): output_spec = PETPVCOutputSpec _cmd = "petpvc" - references_ = [ + _references = [ { "entry": BibTeX( "@article{0031-9155-61-22-7975," diff --git a/nipype/interfaces/quickshear.py b/nipype/interfaces/quickshear.py index b7409fdbf3..feb9ee22f4 100644 --- a/nipype/interfaces/quickshear.py +++ b/nipype/interfaces/quickshear.py @@ -75,7 +75,7 @@ class Quickshear(CommandLine): input_spec = QuickshearInputSpec output_spec = QuickshearOutputSpec - references_ = [ + _references = [ { "entry": BibTeX( "@inproceedings{Schimke2011," diff --git a/nipype/interfaces/spm/base.py b/nipype/interfaces/spm/base.py index 147d63894c..2347d718ae 100644 --- a/nipype/interfaces/spm/base.py +++ b/nipype/interfaces/spm/base.py @@ -290,7 +290,7 @@ class SPMCommand(BaseInterface): _paths = None _use_mcr = None - references_ = [ + _references = [ { "entry": BibTeX( "@book{FrackowiakFristonFrithDolanMazziotta1997,"