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