fix tests (#335)
This commit is contained in:
committed by
Peter Zhokhov
parent
967fc8c37f
commit
bc4eef6053
@@ -92,7 +92,6 @@ class JSONOutputFormat(KVWriter):
|
||||
def writekvs(self, kvs):
|
||||
for k, v in sorted(kvs.items()):
|
||||
if hasattr(v, 'dtype'):
|
||||
v = v.tolist()
|
||||
kvs[k] = float(v)
|
||||
self.file.write(json.dumps(kvs) + '\n')
|
||||
self.file.flush()
|
||||
|
Reference in New Issue
Block a user