def check_110_icondition(): ne_isets = {35} icondition_space_isets = {0, 1, 4, 8, 12, 17, 32, 35, 36, 40, 44} meta = ITaskMeta.load_itask_meta_data_from_file(config.isc_meta_data_file) meta_key = "1-1-0-lpmln-3" meta_data = meta[meta_key] condition_comp = iscu.complete_and_analyse_icondition( ne_isets, icondition_space_isets, meta_data) rule_sets = iscu.get_rule_sets(2, False) rule_set_size = 3 for i in range(len(rule_sets)): if i % rule_set_size == 0: print("\n") key = rule_sets[i] print(key, ":", condition_comp[key])
def check_021_icondition(): ne_isets = {291} icondition_space_isets = {291, 99, 7, 72, 267, 15, 145, 127, 63} meta = ITaskMeta.load_itask_meta_data_from_file(config.isc_meta_data_file) meta_key = "2-1-0-lpmln-3" meta_data = meta[meta_key] condition_comp = iscu.complete_and_analyse_icondition( ne_isets, icondition_space_isets, meta_data) rule_sets = iscu.get_rule_sets(3, False) rule_set_size = 3 for i in range(len(rule_sets)): if i % rule_set_size == 0: print("\n") key = rule_sets[i] print(key, ":", condition_comp[key]) file = config.get_isc_results_file_path(*kmn_data["0-2-1"]) conditions = iscu.load_iconditions_from_file(file) iscu.normalize_iconditions(conditions)