mirror of
https://github.com/clearml/clearml-serving
synced 2025-03-06 04:09:39 +00:00
Merge pull request #28 from thepycoder/bugfix/scalar_histogram_typo
Fix bug where custom buckets are not passed through correctly
This commit is contained in:
commit
4c7d630895
@ -323,7 +323,7 @@ class StatisticsController(object):
|
|||||||
metric_cls = self._metric_type_class.get(metric_.type)
|
metric_cls = self._metric_type_class.get(metric_.type)
|
||||||
if not metric_cls:
|
if not metric_cls:
|
||||||
return None
|
return None
|
||||||
if metric_cls in (Histogram, EnumHistogram):
|
if metric_cls in (ScalarHistogram, EnumHistogram):
|
||||||
return metric_cls(
|
return metric_cls(
|
||||||
name=name,
|
name=name,
|
||||||
documentation="User defined metric {}".format(metric_.type),
|
documentation="User defined metric {}".format(metric_.type),
|
||||||
|
Loading…
Reference in New Issue
Block a user