Generic (cusp.generic)

Data types of class VaspGenericData are used to store the data contained in the VASP calculation output files for which no individual data type is available. However, the node is inherited from the same base class as all other output nodes. This means a gzip-compressed copy of every file marked as VaspGenericData is stored to the repository rather than the plain file contents. Similar to the data types available for WAVECAR and CHGCAR this type is not optimized for user interaction. However, you still may use the type as you like and the stored contents can be easily accessed via the implemented basic methods for file access.

Implemented Methods and Attributes

VaspGenericData.get_content(decompress=True)

Load the node and return either the archive (i.e. compressed) or the file (i.e. the decompressed) contents stored in the node.

Parameters:decompress (bool) – Indicate wether comressed or uncompressed contents are returned
VaspGenericData.write_file(filepath, decompress=True)

Write the node’s contents to a file

Params filepath:
 path to the output file to which the stored contents will be written
Params decompress:
 write the decompressed or the archive contents to the file
VaspGenericData.filepath

Return the path of the object in the repository.

Basically replicates the procedure in the internal open method without the final call to the open()