From 2cd0c8c858e5a6cd4e94319c79fc4eeda73a48a7 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Mon, 25 Mar 2024 11:13:18 -0400 Subject: [PATCH] DOC: Remove redundant sphinx directives duplicating type annotations --- AutoscoperM/AutoscoperM.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/AutoscoperM/AutoscoperM.py b/AutoscoperM/AutoscoperM.py index 4712665..1ef1751 100644 --- a/AutoscoperM/AutoscoperM.py +++ b/AutoscoperM/AutoscoperM.py @@ -1167,11 +1167,8 @@ def generateVRGForCameras( :param cameraDir: Directory containing the camera JSON files :param volumeNode: volume node :param outputDir: output directory - :type outputDir: str :param size: size of the VRG - :type size: list[int] :param filename: filename of the VRG - :type filename: str """ self.createPathsIfNotExists(outputDir) # Apply a thresh of 0 to the volume to remove air from the volume @@ -1296,11 +1293,9 @@ def getItemInSequence(self, sequenceNode: slicer.vtkMRMLSequenceNode, idx: int) Returns the item at the specified index in the sequence node :param sequenceNode: sequence node - :type sequenceNode: slicer.vtkMRMLSequenceNode :param idx: index - :type idx: int + :return: item at the specified index - :rtype: slicer.vtkMRMLNode """ if type(sequenceNode) != slicer.vtkMRMLSequenceNode: logging.error("[AutoscoperM.logic.getItemInSequence] sequenceNode must be a sequence node") @@ -1319,9 +1314,8 @@ def getNextItemInSequence(self, sequenceNode: slicer.vtkMRMLSequenceNode) -> sli Returns the next item in the sequence :param sequenceNode: sequence node - :type sequenceNode: slicer.vtkMRMLSequenceNode + :return: next item in the sequence - :rtype: slicer.vtkMRMLNode """ if type(sequenceNode) != slicer.vtkMRMLSequenceNode: logging.error("[AutoscoperM.logic.getNextItemInSequence] sequenceNode must be a sequence node")