cuebook/CueObserve

View on GitHub
api/anomaly/services/plotChart.py

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function anomalyChartToImgStr has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def anomalyChartToImgStr(anomalyId: int = 0):
        """ Generate anomaly chart and convert it to image """
        anomaly = Anomaly.objects.get(id=anomalyId)
        granularity = anomaly.anomalyDefinition.dataset.granularity
        data = anomaly.data
Severity: Minor
Found in api/anomaly/services/plotChart.py - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status