bag.io
This package provides all IO related functionalities for BAG.
Most importantly, this module sorts out all the bytes v.s. unicode differences and simplifies writing python2/3 compatible code.
Submodules
Package Contents
Functions
|
Fix the given potential string object to ensure python 2/3 compatibility. |
|
Convert the given string to raw bytes. |
|
Sets the BAG input/output encoding. |
|
Returns the BAG input/output encoding. |
|
Sets the error policy on encoding/decoding errors. |
|
Returns the current BAG encoding/decoding error policy. |
|
Load exported simulation results from the given directory. |
|
Saves the given simulation results dictionary as a HDF5 file. |
|
Read simulation results from HDF5 file. |
|
Read the given file and return content as string. |
|
Read the given resource file and return content as string. |
|
Read the given file using YAML. |
|
Iterate over lines in a file. |
|
Writes the given content to file. |
|
Create a new temporary directory. |
|
Opens a new temporary file for writing with unicode interface. |
|
Opens a file with the correct encoding interface. |