Skip to content

Commit

Permalink
fixed bool parsing of configs
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahannes committed May 6, 2024
1 parent 34f8078 commit e8e9e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algo/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
LOG_PREFIX = "MAIN"

def parse_bool(value):
return (value == "True" or value == "true" or value == "1" or value)
return (value == "True" or value == "true" or value == "1")

class CustomConfig(Config):
data_path = "/opt/data"
check_data_anomalies: bool = False
check_data_extreme_outlier: bool = True
check_data_schema: bool = True
check_receive_time_outlier: bool = True
check_consumption: bool = True
check_consumption: bool = False
init_phase_length: float = 2
init_phase_level: str = "d"

Expand Down

0 comments on commit e8e9e10

Please sign in to comment.