本文整理汇总了Python中openadc.ExtendedParameter.ExtendedParameter.reloadParams方法的典型用法代码示例。如果您正苦于以下问题:Python ExtendedParameter.reloadParams方法的具体用法?Python ExtendedParameter.reloadParams怎么用?Python ExtendedParameter.reloadParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类openadc.ExtendedParameter.ExtendedParameter
的用法示例。
在下文中一共展示了ExtendedParameter.reloadParams方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: reloadParamListPreprocessing
# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
def reloadParamListPreprocessing(self, list=None):
"""Reload the parameter lists, ensuring GUI is showing correct options to user"""
plist = []
for p in self.preprocessingListGUI:
if p:
for item in p.paramList():
plist.append(item)
ExtendedParameter.reloadParams(plist, self.preprocessingParamTree)
示例2: loadCfg
# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
def loadCfg(self, fname=None):
if fname is None:
fname, _ = QFileDialog.getOpenFileName(self, 'Open file',QSettings().value("trace_last_file"),'*.cfg')
if fname:
QSettings().setValue("trace_last_file", fname)
if fname:
self.modName.setEnabled(False)
#Figure out what format this is in
tc = TraceContainerConfig(fname)
fmt = tc.attr("format")
#Generate a temp class for getting parameters from
fmtclass = TraceContainerTypes.TraceContainerFormatList[fmt]
#Use temp class to finally initilize our "good" version
self.tmanager = fmtclass( fmtclass.getParamsClass(openMode=True) )
self.tmanager.config.loadTrace(fname)
self.tmanager.loadAllConfig()
ExtendedParameter.reloadParams(self.tmanager.getParams.paramList(), self.paramTree)
示例3: reloadParamList
# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
def reloadParamList(self, lst=None):
"""Reload parameter trees in a given list, ensuring GUI matches loaded modules."""
ExtendedParameter.reloadParams(self.paramList(), self.paramTree)
示例4: reloadParamListResults
# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
def reloadParamListResults(self, lst=None):
"""Reload parameter tree for results settings, ensuring GUI matches loaded modules."""
ExtendedParameter.reloadParams(self.results.paramList(), self.resultsParamTree)
示例5: reloadAttackParamList
# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
def reloadAttackParamList(self, list=None):
"""Reloads parameter tree in GUI when attack changes"""
ExtendedParameter.reloadParams(self.attack.paramList(), self.attackParamTree)
示例6: reloadParameters
# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
def reloadParameters(self):
ExtendedParameter.reloadParams(self.paramList(), self.paramTree)
示例7: traceTypeChanged
# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
def traceTypeChanged(self, newindx):
self.openCfg.setEnabled(False)
newTT = self.modName.itemData(newindx)
self.tmanagerParams = newTT.getParamsClass(openMode=True)
self.tmanager = newTT(self.tmanagerParams)
ExtendedParameter.reloadParams(self.tmanagerParams.paramList(), self.paramTree)
示例8: updateParamTree
# 需要导入模块: from openadc.ExtendedParameter import ExtendedParameter [as 别名]
# 或者: from openadc.ExtendedParameter.ExtendedParameter import reloadParams [as 别名]
def updateParamTree(self, paramTree, changelist, name):
paramlist = []
for k in changelist:
paramlist.append({'name':k})
params = Parameter.create(name=name, type='group', children=paramlist)
ExtendedParameter.reloadParams([params], paramTree)