Skip to content

Commit

Permalink
Remove trailing whitespaces in anomaly_detection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
suriyaa authored Jun 20, 2024
1 parent ca086a3 commit 282ae4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/monitoring/anomaly_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
class AnomalyDetector:
def detect(self, sensor_data):
anomalies = {}

if sensor_data['temperature'] < -40 or sensor_data['temperature'] > 120:
anomalies['temperature'] = sensor_data['temperature']

if sensor_data['pressure'] < 5 or sensor_data['pressure'] > 150:
anomalies['pressure'] = sensor_data['pressure']

if sensor_data['altitude'] < 0 or sensor_data['altitude'] > 9000:
anomalies['altitude'] = sensor_data['altitude']

return anomalies

0 comments on commit 282ae4e

Please sign in to comment.