# Path: fuzzy/utils.py
# def prop(func):
# def checkRange(value,ranges):


    import os,imp
from fuzzy.utils import inf_p,inf_n
    objects = {}
    for class_file in os.listdir(classes_dir):
        for suffix in suffixes:
            class_name = class_file[:-len(suffix)]
            if class_name == "__init__":
                break
            if  class_file[-len(suffix):] == suffix:
                module = __import__(package_name+"."+class_name)
                components = (package_name+"."+class_name).split('.')
                for comp in components[1:]:
                    module = getattr(module, comp)
                try:
                    objects.update({class_name: module.__dict__[class_name]()})
                except:
                    # probably no object with this name in file
                    pass
                break
    return objects



# possible parameter values for some allowed ranges of this parameter
# tuples of ( allowed_range, list_of_values ) 
__params = (
    ( [[0.,1.]]     , [0.0,0.25,0.50,0.75,1.] ),
    ( [(0.,1.)]     , [0.05,0.25,0.50,0.75,0.95] ),
    ( [(0.,inf_p)]  , [0.01,0.10,1.0,10.,100.] ),
    ( [(-1.,inf_p)] , [-0.99,-0.1,0.0,0.10,1.0,10.,100.] ),
    ( [(inf_n,-1.),(-1.,inf_p)] , [-100.,-10,-0.99,0.0,1.0,10.,100.] ),
    ( [(0.,1.),(1.,inf_p)] , [0.1,0.9,1.1,10.,100.] ),

# Path: fuzzy/utils.py
# def prop(func):
# def checkRange(value,ranges):


# Path: demo/utils.py
    import os,imp
from fuzzy.utils import inf_p,inf_n

    objects = {}
    for class_file in os.listdir(classes_dir):
        for suffix in suffixes:
            class_name = class_file[:-len(suffix)]
            if class_name == "__init__":
                break
            if  class_file[-len(suffix):] == suffix:
                module = __import__(package_name+"."+class_name)
                components = (package_name+"."+class_name).split('.')
                for comp in components[1:]:
                    module = getattr(module, comp)
                try:
                    objects.update({class_name: module.__dict__[class_name]()})
                except:
                    # probably no object with this name in file
                    pass
                break
    return objects



# possible parameter values for some allowed ranges of this parameter
# tuples of ( allowed_range, list_of_values ) 
__params = (
    ( [[0.,1.]]     , [0.0,0.25,0.50,0.75,1.] ),
    ( [(0.,1.)]     , [0.05,0.25,0.50,0.75,0.95] ),
    ( [(0.,inf_p)]  , [0.01,0.10,1.0,10.,100.] ),
    ( [(-1.,inf_p)] , [-0.99,-0.1,0.0,0.10,1.0,10.,100.] ),
    ( [(inf_n,-1.),(-1.,inf_p)] , [-100.,-10,-0.99,0.0,1.0,10.,100.] ),
    ( [(0.,1.),(1.,inf_p)] , [0.1,0.9,1.1,10.,100.] ),

    ( [(inf_n,0.),(0.,inf_p)] , [-100.,-10,-1.,-0.1,0.1,1.,10.,100.] )