carputils
Doxygen code documentation for the python framework controlling openCARP
|
Read from a LUT file. More...
Public Member Functions | |
def | __init__ (self, filename) |
def | close (self) |
Close the file. More... | |
def | header (self) |
Read the file header. More... | |
def | data (self) |
Read the file data as a numpy array. More... | |
![]() | |
def | __enter__ (self) |
def | __exit__ (self, exc_type, exc_val, exc_tb) |
Read from a LUT file.
The file may be gzipped - the code automatically determines if this is the case from the file extension.
def carputils.carpio.lut.LUTFile.__init__ | ( | self, | |
filename | |||
) |
filename | (str) Path of the file to read. |
def carputils.carpio.lut.LUTFile.close | ( | self | ) |
Close the file.
def carputils.carpio.lut.LUTFile.data | ( | self | ) |
Read the file data as a numpy array.
def carputils.carpio.lut.LUTFile.header | ( | self | ) |
Read the file header.