From 50697bcff828350e6c327784fed4851d9ced4c6e Mon Sep 17 00:00:00 2001 From: pstefanou Date: Wed, 13 Jan 2021 10:42:32 -0500 Subject: [PATCH] Made changes to the parameters class, so that python objects can be added to args and printed afterwards. --- cox/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cox/utils.py b/cox/utils.py index 880c9ec..4245e37 100644 --- a/cox/utils.py +++ b/cox/utils.py @@ -5,6 +5,7 @@ import dill as pickle import codecs import itertools +import pprint def has_tensorboard(dirname): ''' @@ -126,7 +127,8 @@ def __len__ (self): return len(self.params) def __str__(self): - return json.dumps(self.params, indent=2) + pp = pprint.PrettyPrinter() + return pp.pformat(self.params) def __repr__(self): return str(self)