From 8a28d08f171127d3ac7047611c8deb5c7aa99201 Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Wed, 20 Mar 2019 11:54:14 +0100 Subject: [PATCH] [experiment] Import simplejson as json to make it easy to swap --- beat/core/experiment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beat/core/experiment.py b/beat/core/experiment.py index f8bbc377..dfd8c8ff 100644 --- a/beat/core/experiment.py +++ b/beat/core/experiment.py @@ -44,7 +44,7 @@ Validation for experiments import os import collections -import simplejson +import simplejson as json from . import utils from . import algorithm @@ -1306,7 +1306,7 @@ class Experiment(object): str: The JSON representation for this object """ - return simplejson.dumps(self.data, indent=indent, cls=utils.NumpyJSONEncoder) + return json.dumps(self.data, indent=indent, cls=utils.NumpyJSONEncoder) def __str__(self): -- GitLab