casagui.utils._conversion
Contains for conversion of data passed between Python and JavaScript via websockets
Module Contents
Functions
|
convert all numpy arrays contained within val to lists |
|
convert python values to a string that can be sent via websockets |
|
convert an encoded value received from websockets |
|
Convert numpy N dimensional arrays stored within a dictionary to |
- casagui.utils._conversion.strip_arrays(val)
convert all numpy arrays contained within val to lists
- casagui.utils._conversion.serialize(val)
convert python values to a string that can be sent via websockets
- casagui.utils._conversion.deserialize(val)
convert an encoded value received from websockets
- casagui.utils._conversion.pack_arrays(val)
Convert numpy N dimensional arrays stored within a dictionary to a format that can be converted into the multi-dimensional arrays that are usable for Bokeh data.
- Parameters:
val (value) –
- Returns:
return value is identical to val parameter except that any N dimensional numpy arrays are converted to Bokeh compatible format
- Return type:
value