YamboParser¶
Module that manages the parsing of all the elements of a Yambo computation.
This parser analyzes the output files, the ns.db1 database written in the
SAVE folder and all the databases created by yambo in the $jobname folder.
- class mppi.Parsers.YamboParser.YamboParser(results, verbose=False, extendOut=True)[source]¶
Bases:
objectClass that perform the parsing starting from the results
dictbuilt by theYamboCalculatorclass. In the actual implementation of the class the parser is able to deal with the o- files, the dipoles database, thendb.RT_G_PARand thens.db1database written in the SAVE folder.- Parameters:
results (
dict) – The dictionary of the results built by theYamboCalculatorclassverbose (
boolean) – Determine the amount of information provided on terminalextendOut (
boolean) – Determine which dictionary is used as reference for the names of the variables in theYamboOutputParser
- data¶
contains the instance of the
YamboOutputParserclass that manage the parsing of theo-* files- Type:
YamboOutputParser
- dipoles¶
contains the instance of the
YamboDipolesParserclass that manages the parsing of thedipolesdatabase- Type:
YamboDipolesParser
- dft¶
contains the instance of the
YamboDftParserthat manages the parsing of thens.db1database- Type:
YamboDftParser
- qp¶
contains the instance of the
YamboQPParserthat manages the parsing of thendb.QPdatabase- Type:
YamboQPParser
- RTCarriers¶
contains the instance of the
YamboRTCarriersParserthat manages the parsing of the ndb.RT_carriers database- Type:
YamboRTCarriersParser
- RTGreen¶
contains the instance of the
YamboRTGlesserParserthat manages the parsing of the ndb.RT_G_PAR database- Type:
YamboRTGlesserParser
- classmethod from_path(run_dir, outputPath, dbsPath=None, verbose=True, extendOut=True)[source]¶
Init the a
YamboParserinstance using the ‘o-’ files found inside the outputPath, thens.db1database in the SAVE folder and the databases found in the dbsPath.- Parameters:
run_dir (
string) – run_dir folder of the calculationoutputPath (
string) – folder with the ‘o-’ filesdbsPath (
list) – list of folders with the ndb databases. If this argument is set to `None’ the databases are sought in the outputPathverbose (
boolean) – determine the amount of information provided on terminalextendOut (
boolean) – Determine which dictionary is used as reference for the names of the variables in theYamboOutputParser