parameters: (self)
return_statement: return ab_initio_data
docstring: Check for HD5 cache before reading from ab initio outputs if cache unavailable
docstring_summary: Check for HD5 cache before reading from ab initio outputs if cache unavailable
docstring_tokens: Check for HD5 cache before reading from ab initio outputs if cache unavailable
function: def get_formatted_data(self):
          """
          Check for HD5 cache before reading from ab initio outputs if cache unavailable
          """
          # try to load ab initio data from *.hdf5 file
          try:
              self._clerk.check_previous_data()
  
              ab_initio_data = self.load_formatted_data()
              logger.notice(str(ab_initio_data) + " has been loaded from the HDF file.")
  
          # if loading from *.hdf5 file failed than read data directly from input ab initio file and erase hdf file
          except (IOError, ValueError) as err:
  
              logger.notice(str(err))
              self._clerk.erase_hdf_file()
              ab_initio_data = self.read_vibrational_or_phonon_data()
              logger.notice(str(ab_initio_data) + " from ab initio input file has been loaded.")
  
          return ab_initio_data
function_tokens: def get_formatted_data ( self ) : # try to load ab initio data from *.hdf5 file try : self . _clerk . check_previous_data ( ) ab_initio_data = self . load_formatted_data ( ) logger . notice ( str ( ab_initio_data ) + " has been loaded from the HDF file." ) # if loading from *.hdf5 file failed than read data directly from input ab initio file and erase hdf file except ( IOError , ValueError ) as err : logger . notice ( str ( err ) ) self . _clerk . erase_hdf_file ( ) ab_initio_data = self . read_vibrational_or_phonon_data ( ) logger . notice ( str ( ab_initio_data ) + " from ab initio input file has been loaded." ) return ab_initio_data