diff --git a/python/PiFinder/utils.py b/python/PiFinder/utils.py index e864bff2e..523228537 100644 --- a/python/PiFinder/utils.py +++ b/python/PiFinder/utils.py @@ -39,6 +39,10 @@ def serialize_solution(solution: dict) -> str: if "numpy.float" in str(type(v)): v = float(v) + + if "quaternion" in str(type(v)): + v = v.components.tolist() + out_dict[k] = v return json.dumps(out_dict)