Plot trace files.
More...
|
class | FileDescription |
| Class to hold the information about each of the binary output files generated by LIMPET/bench which contain information about the sv. More...
|
|
◆ openCARP_dtype()
def bin.plotTrace.openCARP_dtype |
( |
|
carp_dtype, |
|
|
|
carp_dsize |
|
) |
| |
Determine openCARP data type.
- Parameters
-
carp_dtype | string of openCARP/LIMPET data type. |
carp_dsize | number of bytes of data type. |
- Returns
- An string of the data type -> float or double.
◆ parser()
def bin.plotTrace.parser |
( |
| ) |
|
◆ read_sv_dump()
def bin.plotTrace.read_sv_dump |
( |
|
filename, |
|
|
|
is_bigendian, |
|
|
|
type, |
|
|
|
dsize, |
|
|
|
numSamps |
|
) |
| |
Read state variables from binary file.
- Parameters
-
filename | the name of the binary file to read. |
is_bigendian | true for big endian byte order. |
type | openCARP data type -> float or double. |
dsize | number of bytes of data type. |
numSamps | number of samples. |
- Returns
- A numpy array with the binary data of the state variable.
◆ read_sv_dump_header()
def bin.plotTrace.read_sv_dump_header |
( |
|
filename | ) |
|
Reads header provided by LIMPET/bench and extracts information about the binary files to read and create the HDF5 repository.
- Parameters
-
filename | the name of the header file to read. |
- Returns
- An instance of FileDescription object, describing data format.
◆ readTrace()
def bin.plotTrace.readTrace |
( |
|
fname | ) |
|
◆ dtype
◆ fcont
◆ flst
◆ opts
def bin.plotTrace.opts = parser().parse_args() |
◆ time