def openFile (newFileName):
        '''
        @param newFileName: Full path to the file and the name of the file.
        @summary: This function creates a new file. If the length of the name passed =0 then a file called "defaultAlphaFileName.h5" will be created.
        @warning: If a file of the same name already exists then that file will be overwritten.
        '''
        global fileName, h5f, group, table, opened, ctr
        ctr=float (0.0)
        
        if newFileName is None:
            print "Using default name for alpha file"
        else:
           if (len(newFileName)>0):
               fileName= str(newFileName)
           else:
             print "Using default name for alpha file"
            
        #Opening the file now...
        if not opened:
         h5f = pt.openFile(str(fileName), mode = "w")
         group = h5f.createGroup("/", 'alphaData')
         table = h5f.createTable(group, 'alphaData', AlphaDataModelClass)   
         opened=True 
        else:
         print "File already opened. Doing nothing"      
    
    # File opened
dataset/ETHPy150Open QuantSoftware/QuantSoftwareToolkit/Legacy/Legacy/alphaDataModel/AlphaDataModel.py/openFile/original