Skip to content

Commit

Permalink
DOC: Remove redundant sphinx directives duplicating type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Mar 25, 2024
1 parent 71c20a0 commit 2cd0c8c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions AutoscoperM/AutoscoperM.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 2cd0c8c

Please sign in to comment.