Skip to content

Commit b7f8567

Browse files
committed
Package rename.
1 parent 80a16f5 commit b7f8567

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

home/lib/anomalies/anomaly_detection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from .data_types import RuleExecutionRunParameters, HistoricData
1919

2020
try:
21-
import rules.dqopspaid.anomaly_detection
21+
import rules.dqopspaid.ai.anomaly_detection
2222
except ModuleNotFoundError:
2323
ai_module_present = False
2424
else:
@@ -85,7 +85,7 @@ def test_significance(values: list[float], parameters: RuleExecutionRunParameter
8585
def detect_upper_bound_anomaly(historic_data: HistoricData, median: float, tail: float,
8686
parameters: RuleExecutionRunParameters):
8787
if hasattr(parameters.parameters, 'use_ai') and parameters.parameters.use_ai and ai_module_present:
88-
return rules.dqopspaid.anomaly_detection.detect_upper_bound_anomaly(historic_data, median, tail, parameters)
88+
return rules.dqopspaid.ai.anomaly_detection.detect_upper_bound_anomaly(historic_data, median, tail, parameters)
8989

9090
values = historic_data['converted_values']
9191
values_above_median = [value for value in values if value is not None and value >= median]
@@ -107,7 +107,7 @@ def detect_upper_bound_anomaly(historic_data: HistoricData, median: float, tail:
107107
def detect_lower_bound_anomaly(historic_data: HistoricData, median: float, tail: float,
108108
parameters: RuleExecutionRunParameters):
109109
if hasattr(parameters.parameters, 'use_ai') and parameters.parameters.use_ai and ai_module_present:
110-
return rules.dqopspaid.anomaly_detection.detect_lower_bound_anomaly(historic_data, median, tail, parameters)
110+
return rules.dqopspaid.ai.anomaly_detection.detect_lower_bound_anomaly(historic_data, median, tail, parameters)
111111

112112
values = historic_data['converted_values']
113113
values_below_median = [value for value in values if value is not None and value <= median]

0 commit comments

Comments
 (0)