mirror of
https://github.com/clearml/clearml-serving
synced 2025-03-05 11:41:22 +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)
|
||||
if not metric_cls:
|
||||
return None
|
||||
if metric_cls in (Histogram, EnumHistogram):
|
||||
if metric_cls in (ScalarHistogram, EnumHistogram):
|
||||
return metric_cls(
|
||||
name=name,
|
||||
documentation="User defined metric {}".format(metric_.type),
|
||||
|
Loading…
Reference in New Issue
Block a user