コード例 #1
0
ファイル: Serialization.py プロジェクト: stringhamc/Optizelle
def deserialize(x, x_json):
    """Converts a JSON formatted string to a vector"""

    raise Optizelle.Exception(
        "The deserialize function for the vector %s not defined." % str(x))
コード例 #2
0
ファイル: Serialization.py プロジェクト: stringhamc/Optizelle
def serialize(x):
    """Converts a vector to a JSON formatted string"""

    raise Optizelle.Exception(
        "The serialize function for the vector %s not defined." % str(x))