swamp.parsers.phaserparser module

class PhaserParser(fname, stdout, logger=None)[source]

Bases: swamp.parsers.parser.Parser

A Phaser output parser

Parameters:
  • fname (str) – the file name to be parsed (default None)
  • stdout (str) – the stdout to be parsed (default None)
  • logger (SwampLogger) – logging interface for the parser (default None)
Variables:
  • RFZ (str) – the RFZ as parsed from the fname
  • TFZ (str) – the RFZ as parsed from the fname
  • LLG (str) – the LLG as parsed from the fname
  • eLLG (str) – the eLLG as parsed from the stdout
  • VRMS (str) – the VRMS as parsed from the stdout
Example:
>>> from swamp.parsers import PhaserParser
>>> my_parser = PhaserParser('<fname>', '<stdout>')
>>> my_parser.parse()
parse()[source]

Extract the figures of merit from fname and stdout

summary

A summary of the parsed figures of merit

class PhaserScores[source]

Bases: enum.Enum

An enumerator that contains the figures of merit to be parsed from phaser logfile

LLG = 'LLG'
RFZ = 'RFZ'
TFZ = 'TFZ'