cctk.MAEFile¶
- class cctk.MAEFile(name=None)[source]¶
Bases:
FileClass representing Maestro
.maefiles.- name¶
name of file
- Type:
str
Methods
__init__([name])append_to_file(filename, text)Appends output text to a file.
get_molecule([num])Returns the last molecule from the ensemble.
read_file(filename[, name])Reads
.maefile and generates aMAEFileinstance.write_file(filename, text[, overwrite_existing])Writes output text to a file.
- static append_to_file(filename, text)¶
Appends output text to a file.
- Parameters:
filename (str) – path to file, including name (e.g.
path/to/input.gjf)text (str) – desired contents of file
- Returns:
Trueif write succeeded,Falseotherwise
- get_molecule(num=None)[source]¶
Returns the last molecule from the ensemble.
If
numis specified, returnsself.ensemble.molecules[num]
- classmethod read_file(filename, name=None, **kwargs)[source]¶
Reads
.maefile and generates aMAEFileinstance.- Parameters:
filename (str) – path to file
name (str) – name of the file
- Returns:
MAEFile object property names (list) property_values (list)
- static write_file(filename, text, overwrite_existing=True)¶
Writes output text to a file.
- Parameters:
filename (str) – path to file, including name (e.g.
path/to/input.gjf)text (str) – desired contents of file
overwrite_existing (Bool) – whether any existing files should be overwritten or not
- Returns:
Trueif write succeeded,Falseotherwise