pmutt.io.gaussian.read_pattern

pmutt.io.gaussian.read_pattern(filename, pattern, group=0, return_immediately=True)

Reads the pattern from the Gaussian log file.

Parameters:
  • filename (str) – Log file

  • pattern (str) – Regular expression pattern

  • group (int, optional) – Group to return. Default is 0

  • return_immediately (bool, optional) – If True, returns after the first instance. If False, reads the whole file. Default is True

Returns:

out_values – Value(s) corresponding to pattern.

  • str if return_immediately is True

  • list if return_immediately is False

If the pattern is not found, returns an empty list

Return type:

str or list of str