def getfile(self):
        """Gets the full file path of the entered/selected file

        :returns: str -- the name of the data file to open/create
        """
        current_file = str(self.selectedFiles()[0])
        if os.path.isfile(current_file):
            print 'current_file', current_file
            if current_file.endswith('.raw') or current_file.endswith('.pst'):
                fmode = 'r'
            else:
                fmode = 'a'
        else:
            if not current_file.endswith('.hdf5') and not current_file.endswith('.h5'):
                current_file += '.hdf5'
            fmode = 'w-'
        return current_file, fmode