Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion config/model_quality/model_quality.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ ELK_STATISTICS_INDEX = emfos-model-statistics
BORDER_LIMIT = 250
LINE_LIMIT_TEMPERATURE = 25 C
IGM_RULE_SET = impedance,line_rating
CGM_RULE_SET = kruonis,rtec,outage,lt_pl_xborder
CGM_RULE_SET = kruonis,rtec,outage,lt_pl_xborder
#either a BA or EU
CGM_TYPE = BA
2 changes: 1 addition & 1 deletion emf/model_quality/quality_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def generate_quality_report(handler, network, object_type, model_metadata, rule_

report = {}

if object_type == "CGM" and model_metadata['pmd:Area'] == 'BA':
if object_type == "CGM" and model_metadata['pmd:Area'] in CGM_TYPE:

report = check_generator_quality(report, network)
report = check_lt_pl_crossborder(report, network, tieflow_data=tieflow_data, border_limit=BORDER_LIMIT)
Expand Down
Loading