carputils
Doxygen code documentation for the python framework controlling openCARP
|
Classes | |
class | TxtFile |
file IO class for reading ascii files with extensions More... | |
Functions | |
def | open (args, kwargs) |
Open an .dat or .vec file. More... | |
def | read (args, kwargs) |
read data based on file extension More... | |
def | write (filename, data, kwargs) |
Variables | |
fopen = open | |
def carputils.carpio.txt.open | ( | args, | |
kwargs | |||
) |
Open an .dat or .vec file.
Convenience method to provide normal python style interface to create a file type object.
filename | str The filename to open |
mode | str, optional 'r' for read mode (default), 'w' for write mode |
def carputils.carpio.txt.read | ( | args, | |
kwargs | |||
) |
read data based on file extension
Handled file types: .elem, .dat, .vec, .vtx, .pts
filename | str The filename to open |
mode | str, optional 'r' for read mode (default), 'w' for write mode |
tags ... in the case of an .elem file
npts ... in case of a .pts file
domain ... in case of .vtx file
def carputils.carpio.txt.write | ( | filename, | |
data, | |||
kwargs | |||
) |
carputils.carpio.txt.fopen = open |