Пример #1
0
def reset_all():
    """
    Clean all circuits and reset global options
    """
    # Set global variables to default values
    glVar.reset()
    glVar.set_attributes()
    # Erase circuits
    cir.reset_allckt()
Пример #2
0
def reset_all():
    """
    Clean all circuits and reset global options
    """
    # Set global variables to default values
    glVar.reset()
    glVar.set_attributes()
    # Erase circuits
    cir.reset_allckt()
Пример #3
0
def parse_options(tok):
    """
    Set attributes in glVars
    """
    # Set parameters
    for par in tok.options:
        # try to match parameter type with expected type (if
        # parameter exists at all)
        match_parameter(glVar, par)
        # if control reaches here we are OK
        glVar.set_param(par[0], par[1])
    # Now make sure attributes are updated
    glVar.set_attributes(useDefaults=False)
Пример #4
0
def parse_options(tok):
    """
    Set attributes in glVars
    """
    # Set parameters 
    for par in tok.options:
        # try to match parameter type with expected type (if
        # parameter exists at all)
        match_parameter(glVar, par)
        # if control reaches here we are OK
        glVar.set_param(par[0], par[1])
    # Now make sure attributes are updated
    glVar.set_attributes(useDefaults = False)