Esempio n. 1
0
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))
Esempio n. 2
0
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))