| carputils
    Doxygen code documentation for the python framework controlling openCARP | 
Provides a class for .dat and .vec IO to/from python numpy arrays. More...
| 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 | |
Provides a class for .dat and .vec IO to/from python numpy arrays.
| 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 | 
 1.8.13
 1.8.13