Example #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()
Example #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()
Example #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)
Example #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)