diff options
author | 2018-06-13 13:04:01 +0200 | |
---|---|---|
committer | 2018-06-15 10:16:43 +0000 | |
commit | a2a0ab1cdec3567dcad46c2000337707777aa0ca (patch) | |
tree | 8d6147d2fda535c5c32c432a4ea7f3ec3124c8d9 /resources/tools/presentation/new/jumpavg/ClassifiedBitCountingMetadata.py | |
parent | 5120b1082aa70f6e75511e9d95a2a7c303e25f9a (diff) |
CSIT-1110: Prepare for migrating the new detection
+ Do not declare BitCountingClassifier.classify() as class method.
+ Make BitCountingGroupList subclass of list.
+ Inherit from abstract classes whenever possible.
+ Drop unneeded imports.
+ Add module docstrings and class docstrings anywhere.
+ Add TODOs hinting at possible improvements.
Change-Id: Iccfff5c0e7be0607d6cfa74314083fcfe5a4d7d9
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/tools/presentation/new/jumpavg/ClassifiedBitCountingMetadata.py')
-rw-r--r-- | resources/tools/presentation/new/jumpavg/ClassifiedBitCountingMetadata.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/tools/presentation/new/jumpavg/ClassifiedBitCountingMetadata.py b/resources/tools/presentation/new/jumpavg/ClassifiedBitCountingMetadata.py index 9a7277bc3e..29359f0908 100644 --- a/resources/tools/presentation/new/jumpavg/ClassifiedBitCountingMetadata.py +++ b/resources/tools/presentation/new/jumpavg/ClassifiedBitCountingMetadata.py @@ -11,11 +11,16 @@ # See the License for the specific language governing permissions and # limitations under the License. +"""Module holding ClassifiedBitCountingMetadata class.""" + from BitCountingMetadata import BitCountingMetadata class ClassifiedBitCountingMetadata(BitCountingMetadata): - """Class for metadata which includes classification.""" + """Class for metadata which includes classification. + + TODO: Can we create ClassifiedMetadata and inherit (also) from that? + """ def __init__( self, max_value, size=0, avg=0.0, stdev=0.0, prev_avg=None, |