parameters: (files)
return_statement: return seriesUIDs
docstring: Collect series instance UIDs belonging to a list of files
docstring_summary: Collect series instance UIDs belonging to a list of files
docstring_tokens: Collect series instance UIDs belonging to a list of files
function: def seriesUIDsForFiles(files):
    """ Collect series instance UIDs belonging to a list of files
    """
    seriesUIDs = set()
    for file in files:
      seriesUID = slicer.dicomDatabase.seriesForFile(file)
      if seriesUID != '':
        seriesUIDs.add(seriesUID)
    return seriesUIDs
function_tokens: def seriesUIDsForFiles ( files ) : seriesUIDs = set ( ) for file in files : seriesUID = slicer . dicomDatabase . seriesForFile ( file ) if seriesUID != '' : seriesUIDs . add ( seriesUID ) return seriesUIDs