Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
nbardy committed Jul 17, 2020
1 parent bdc0664 commit 87f0f69
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wandb/interface/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,12 @@ def _summary_encode(self, value, path_from_root):
if isinstance(value, dict):
json_value = {}
for key, value in six.iteritems(value):
json_value[key] = self._summary_encode(
value, path_from_root + (key,))
json_value[key] = self._summary_encode(value, path_from_root + (key,))
return json_value
else:
path = ".".join(path_from_root)
friendly_value, converted = json_friendly(
data_types.val_to_json(
self._run, path, value, namespace="summary")
data_types.val_to_json(self._run, path, value, namespace="summary")
)
json_value, compressed = maybe_compress_summary(
friendly_value, get_h5_typename(value)
Expand Down

0 comments on commit 87f0f69

Please sign in to comment.