parameters: (self, files)
return_statement: return loadables
docstring: Returns a list of DICOMLoadable instances
      corresponding to ways of interpreting the
      files parameter.
      Look for the special private creator tags that indicate
      a slicer data bundle
      Note that each data bundle is in a unique series, so
      if 'files' is a list of more than one element, then this
      is not a data bundle.
docstring_summary: Returns a list of DICOMLoadable instances
      corresponding to ways of interpreting the
      files parameter.
      Look for the special private creator tags that indicate
      a slicer data bundle
      Note that each data bundle is in a unique series, so
      if 'files' is a list of more than one element, then this
      is not a data bundle.
docstring_tokens: Returns a list of DICOMLoadable instances corresponding to ways of interpreting the files parameter . Look for the special private creator tags that indicate a slicer data bundle Note that each data bundle is in a unique series so if files is a list of more than one element then this is not a data bundle .
function: def examineFiles(self, files):
      """ Returns a list of DICOMLoadable instances
      corresponding to ways of interpreting the
      files parameter.
      Look for the special private creator tags that indicate
      a slicer data bundle
      Note that each data bundle is in a unique series, so
      if 'files' is a list of more than one element, then this
      is not a data bundle.
      """
  
      loadables = []
      if len(files) == 1:
        f = files[0]
        # get the series description to use as base for volume name
        name = slicer.dicomDatabase.fileValue(f, self.tags['seriesDescription'])
        if name == "":
          name = "Unknown"
        candygramValue = slicer.dicomDatabase.fileValue(f, self.tags['candygram'])
  
        if candygramValue:
          # default loadable includes all files for series
          loadable = DICOMLoadable()
          loadable.files = [f]
          loadable.name = name + ' - as Slicer Scene'
          loadable.selected = True
          loadable.tooltip = 'Contains a Slicer scene'
          loadable.confidence = 0.9
          loadables.append(loadable)
      return loadables
function_tokens: def examineFiles ( self , files ) : loadables = [ ] if len ( files ) == 1 : f = files [ 0 ] # get the series description to use as base for volume name name = slicer . dicomDatabase . fileValue ( f , self . tags [ 'seriesDescription' ] ) if name == "" : name = "Unknown" candygramValue = slicer . dicomDatabase . fileValue ( f , self . tags [ 'candygram' ] ) if candygramValue : # default loadable includes all files for series loadable = DICOMLoadable ( ) loadable . files = [ f ] loadable . name = name + ' - as Slicer Scene' loadable . selected = True loadable . tooltip = 'Contains a Slicer scene' loadable . confidence = 0.9 loadables . append ( loadable ) return loadables