示例#1
0
weight_factor3 = []
near_elm3 = []
near_points = []
weight_factor_node = []
M = []
weight_factor_distance = []
near_nodes = []
above_elm = {}
below_elm = {}
for ft in filter_list:
    if ft[0] and ft[1]:
        f_range = ft[1]
        if ft[0] == "casting":
            if len(ft) == 3:
                domains_to_filter = list(opt_domains)
                beso_filters.check_same_state(domain_same_state, domains_from_config, file_name)
            else:
                domains_to_filter = []
                filtered_dn = []
                for dn in ft[3:]:
                    domains_to_filter += domains[dn]
                    filtered_dn.append(dn)
                beso_filters.check_same_state(domain_same_state, filtered_dn, file_name)
            casting_vector = ft[2]
            [above_elm, below_elm] = beso_filters.prepare2s_casting(cg, f_range, domains_to_filter,
                                                                    above_elm, below_elm, casting_vector)
            continue  # to evaluate other filters
        if len(ft) == 2:
            domains_to_filter = list(opt_domains)
            beso_filters.check_same_state(domain_same_state, domains_from_config, file_name)
        else:
示例#2
0
文件: beso_main.py 项目: fandaL/beso
near_elm = {}
weight_factor3 = []
near_elm3 = []
near_points = []
weight_factor_node = []
M = []
weight_factor_distance = []
near_nodes = []
above_elm = {}
for ft in filter_list:
    if ft[0] and ft[1]:
        f_range = ft[1]
        if ft[0] == "casting":
            if len(ft) == 3:
                domains_to_filter = list(opt_domains)
                beso_filters.check_same_state(domain_same_state, domains_from_config, file_name)
            else:
                domains_to_filter = []
                filtered_dn = []
                for dn in ft[3:]:
                    domains_to_filter += domains[dn]
                    filtered_dn.append(dn)
                beso_filters.check_same_state(domain_same_state, filtered_dn, file_name)
            casting_vector = ft[2]
            above_elm = beso_filters.prepare2s_casting(cg, f_range, domains_to_filter, above_elm, casting_vector)
            continue  # to evaluate other filters
        if len(ft) == 2:
            domains_to_filter = list(opt_domains)
            beso_filters.check_same_state(domain_same_state, domains_from_config, file_name)
        else:
            domains_to_filter = []