|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Provides a class for IGB IO to/from python numpy arrays. More...
Classes | |
| class | IGBFile |
| IGB format file IO class. More... | |
Functions | |
| def | open (args, kwargs) |
| Open an IGB file. More... | |
| def | read (filename, reshape=True) |
| Read an IGB file and return the reshaped data array plus header. More... | |
Variables | |
| string | FORMFEED = b'\x0c' |
| int | MAXLENGTH = 128*1024 |
| fopen = open | |
Provides a class for IGB IO to/from python numpy arrays.
| def carputils.carpio.igb.open | ( | args, | |
| kwargs | |||
| ) |
Open an IGB file.
Convenience method to provide normal python style interface to create a file type object.
| filename | (str) The filename to open. |
| mode | (str) 'r' for read mode (default), 'w' for write mode |
| def carputils.carpio.igb.read | ( | filename, | |
reshape = True |
|||
| ) |
Read an IGB file and return the reshaped data array plus header.
| filename | (str) The filename to open |
| reshape | (bool) Reshape the data array. Default: True. DOFs are stored in the lines, time in the columns. |
| carputils.carpio.igb.fopen = open |
| string carputils.carpio.igb.FORMFEED = b'\x0c' |
| int carputils.carpio.igb.MAXLENGTH = 128*1024 |
1.8.13