Browse Source

!101 Fix pylint warnings for HistogramContainer

Merge pull request !101 from liangyongxiong/master
tags/v0.3.0-alpha
mindspore-ci-bot Gitee 5 years ago
parent
commit
2ba39bf59e
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      mindinsight/datavisual/data_transform/histogram_container.py

+ 4
- 4
mindinsight/datavisual/data_transform/histogram_container.py View File

@@ -72,16 +72,16 @@ class Bucket:




class HistogramContainer: class HistogramContainer:

# Max quantity of original buckets.
MAX_ORIGINAL_BUCKETS_COUNT = 90

""" """
Histogram data container. Histogram data container.


Args: Args:
histogram_message (Summary.Histogram): Histogram message in summary file. histogram_message (Summary.Histogram): Histogram message in summary file.
""" """

# Max quantity of original buckets.
MAX_ORIGINAL_BUCKETS_COUNT = 90

def __init__(self, histogram_message: Summary.Histogram): def __init__(self, histogram_message: Summary.Histogram):
self._msg = histogram_message self._msg = histogram_message
original_buckets = [Bucket(bucket.left, bucket.width, bucket.count) for bucket in self._msg.buckets] original_buckets = [Bucket(bucket.left, bucket.width, bucket.count) for bucket in self._msg.buckets]


Loading…
Cancel
Save