本文整理汇总了Python中signetsim.views.HasWorkingModel.HasWorkingModel.load方法的典型用法代码示例。如果您正苦于以下问题:Python HasWorkingModel.load方法的具体用法?Python HasWorkingModel.load怎么用?Python HasWorkingModel.load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类signetsim.views.HasWorkingModel.HasWorkingModel
的用法示例。
在下文中一共展示了HasWorkingModel.load方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.listOfCompartments = self.getModel().listOfCompartments
self.listOfUnits = self.getModel().listOfUnitDefinitions
示例2: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadVariables()
self.loadReactions()
self.loadExperiments()
示例3: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasWorkingModel.load(self, request, *args, **kwargs)
self.listOfObjects = []
for object in self.getModel().listOfSbmlObjects:
if isinstance(object, Variable) and not object.isStoichiometry():
self.listOfObjects.append(object)
self.listOfSubmodels = self.getModel().listOfSubmodels
示例4: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadRules()
self.loadGlobalVariables()
示例5: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadSpecies()
self.loadCompartments()
self.loadUnits()
示例6: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadParameters()
self.loadReactions()
self.loadUnits()
示例7: post
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def post(self, request, *args, **kwargs):
HasWorkingModel.load(self, request, *args, **kwargs)
if "action" in request.POST:
if self.isChooseModel(request):
# Already done !
pass
return TemplateView.get(self, request, *args, **kwargs)
示例8: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasWorkingModel.load(self, request, *args, **kwargs)
for variable in self.getModel().listOfVariables:
if ((variable.isParameter() and variable.isGlobal())
or variable.isSpecies()
or variable.isCompartment()
or variable.isStoichiometry()):
self.listOfVariables.append(variable)
示例9: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadSubmodels()
self.loadProjectModels(request)
self.loadConversionFactors()
self.loadObjects()
self.loadSubstitutions()
示例10: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if len(args) > 0:
self.setModel(request, int(args[0]))
if self.isModelLoaded():
self.listOfUnits = self.getModel().listOfUnitDefinitions
self.listOfParameters = self.getModel().listOfParameters
self.sbmlLevels = self.getModel().getSbmlLevels()
self.form.load()
示例11: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if len(args) > 0:
self.setModel(request, int(args[0]))
if self.isModelLoaded():
self.form.load()
self.modelHistory = self.getModel().modelHistory
if len(self.getModel().getAnnotation().getIsDescribedBy()) > 0:
self.modelPublication = self.getModel().getAnnotation().getIsDescribedBy()[0]
示例12: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.listOfEvents = self.getModel().listOfEvents
self.getModel().listOfVariables.classifyVariables()
self.listOfVariables = []
for variable in self.getModel().listOfVariables:
if ((variable.isParameter() and variable.isGlobal())
or variable.isSpecies()
or variable.isCompartment()
or variable.isStoichiometry()):
self.listOfVariables.append(variable)
示例13: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasWorkingModel.load(self, request, *args, **kwargs)
self.listOfCompartments = self.getModel().listOfCompartments
self.listOfReactions = self.getModel().listOfReactions
if self.isModelLoaded():
if self.isCompModelDefinition():
self.listOfSpecies = [species for species in self.getModel().listOfSpecies]
elif self.isCompInternalSubmodel():
self.listOfSpecies = [species for species in self.getModel().listOfSpecies]
elif self.isFlattenModel():
# Would be nice to also draw the boundaries of the submodels here
self.listOfSpecies = [species for species in self.getModel().listOfSpecies if species.isInReactions(including_modifiers=True)]
else:
self.listOfSpecies = [species for species in self.getModel().listOfSpecies if species.isInReactions(including_modifiers=True)]
示例14: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadUnitDefinitions()
示例15: load
# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import load [as 别名]
def load(self, request, *args, **kwargs):
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.form.loadParameters(request)