parameters: (databaseDir)
return_statement: return True
docstring: Open DICOM database in the specified folder
docstring_summary: Open DICOM database in the specified folder
docstring_tokens: Open DICOM database in the specified folder
function: def openDatabase(databaseDir):
    """Open DICOM database in the specified folder"""
    if not os.access(databaseDir, os.F_OK):
      logging.error('Specified database directory ' + repr(databaseDir) + ' cannot be found')
      return False
    databaseFileName = databaseDir + "/ctkDICOM.sql"
    slicer.dicomDatabase.openDatabase(databaseFileName)
    if not slicer.dicomDatabase.isOpen:
      logging.error('Unable to open DICOM database ' + databaseDir)
      return False
    return True
function_tokens: def openDatabase ( databaseDir ) : if not os . access ( databaseDir , os . F_OK ) : logging . error ( 'Specified database directory ' + repr ( databaseDir ) + ' cannot be found' ) return False databaseFileName = databaseDir + "/ctkDICOM.sql" slicer . dicomDatabase . openDatabase ( databaseFileName ) if not slicer . dicomDatabase . isOpen : logging . error ( 'Unable to open DICOM database ' + databaseDir ) return False return True