parameters: (self, workspace)
return_statement: return sliced_workspace_name
docstring: If slicing has been requested, slice the input workspace, otherwise
          return it unchanged
docstring_summary: If slicing has been requested, slice the input workspace, otherwise
          return it unchanged
docstring_tokens: If slicing has been requested slice the input workspace otherwise return it unchanged
function: def _sliceWorkspace(self, workspace):
          """If slicing has been requested, slice the input workspace, otherwise
          return it unchanged"""
          if not self._slicingEnabled():
              return workspace
          # Perform the slicing
          sliced_workspace_name = self._getSlicedWorkspaceGroupName(workspace)
          self.log().information('Slicing workspace ' + workspace + ' into ' + sliced_workspace_name)
          workspace = self._runSliceAlgorithm(workspace, sliced_workspace_name)
          return sliced_workspace_name
function_tokens: def _sliceWorkspace ( self , workspace ) : if not self . _slicingEnabled ( ) : return workspace # Perform the slicing sliced_workspace_name = self . _getSlicedWorkspaceGroupName ( workspace ) self . log ( ) . information ( 'Slicing workspace ' + workspace + ' into ' + sliced_workspace_name ) workspace = self . _runSliceAlgorithm ( workspace , sliced_workspace_name ) return sliced_workspace_name