|
Ariles
|
Python serialization.
Outputs a Python script that defines variables containing data exported by ariles. Script includes all necessary imports and is intended to be loaded in other python scripts or interactive sessions using exec(open("output_script.py").read()). Ariles class exported using 'python' visitor is a single python map similar to this: ‘root_element={'vector’: [1, 2, 3], 'vector_of_maps': [{'a': 'a'}], 'scalar': 2}`, i.e.: ariles maps correspond to python dictionaries, arrays to python arrays, matrices and vectors should be represented using numpy types.
Classes | |
| struct | ariles2::python |
| Python visitor. More... | |