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

Commit

Permalink
Merge branch 'master' into fix/resume-unit
Browse files Browse the repository at this point in the history
  • Loading branch information
raubitsj committed Sep 1, 2020
2 parents acd495a + d3c9bdf commit ebea129
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wandb/data_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
def _datatypes_set_callback(cb):
global _glob_datatypes_callback
_glob_datatypes_callback = cb

def _datatypes_callback(fname):
if _glob_datatypes_callback:
_glob_datatypes_callback(fname)
Expand Down Expand Up @@ -1745,8 +1746,7 @@ def val_to_json(run, key, val, namespace=None):
items = prune_max_seq(val)

for i, item in enumerate(items):
if not item.is_bound():
item.bind_to_run(run, key, namespace, id_=i)
item.bind_to_run(run, key, namespace, id_=i)

return items[0].seq_to_json(items, run, key, namespace)
else:
Expand Down
6 changes: 5 additions & 1 deletion wandb/lib/sparkline.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# vim: set fileencoding=utf-8 :
# From pysparklines (BSD License): https://pypi.python.org/pypi/pysparklines

import math

spark_chars = u"▁▂▃▄▅▆▇█"


Expand All @@ -18,7 +20,9 @@ def sparkify(series):
Raises ValueError if input data cannot be converted to float.
Raises TypeError if series is not an iterable.
"""
series = [float(i) for i in series]
series = [float(i) for i in series if not math.isnan(i)]
if not series:
return u''
minimum = min(series)
maximum = max(series)
data_range = maximum - minimum
Expand Down

0 comments on commit ebea129

Please sign in to comment.