本文整理汇总了Python中signetsim.views.HasWorkingModel.HasWorkingModel类的典型用法代码示例。如果您正苦于以下问题:Python HasWorkingModel类的具体用法?Python HasWorkingModel怎么用?Python HasWorkingModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HasWorkingModel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: load
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: __init__
def __init__(self, **kwargs):
TemplateView.__init__(self, **kwargs)
HasWorkingModel.__init__(self)
self.listOfUnitDefinitions = None
self.form = ModelUnitsForm(self)
示例3: __init__
def __init__(self, **kwargs):
TemplateView.__init__(self, **kwargs)
HasWorkingModel.__init__(self)
self.optimization = None
self.form = DataOptimizationForm(self)
示例4: load
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
示例5: __init__
def __init__(self, **kwargs):
TemplateView.__init__(self, **kwargs)
HasWorkingModel.__init__(self)
self.listOfSpecies = None
self.listOfReactions = None
self.listOfCompartments = None
示例6: load
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadRules()
self.loadGlobalVariables()
示例7: load
def load(self, request, *args, **kwargs):
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadVariables()
self.loadReactions()
self.loadExperiments()
示例8: load
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadSpecies()
self.loadCompartments()
self.loadUnits()
示例9: load
def load(self, request, *args, **kwargs):
HasErrorMessages.clearErrors(self)
HasWorkingModel.load(self, request, *args, **kwargs)
if self.isModelLoaded():
self.loadParameters()
self.loadReactions()
self.loadUnits()
示例10: __init__
def __init__(self, **kwargs):
TemplateView.__init__(self, **kwargs)
HasErrorMessages.__init__(self)
HasWorkingModel.__init__(self)
self.modelHistory = None
self.modelPublication = None
self.form = ModelAnnotationsForm(self)
示例11: __init__
def __init__(self, **kwargs):
TemplateView.__init__(self, **kwargs)
HasErrorMessages.__init__(self)
HasWorkingModel.__init__(self)
self.listOfVariables = None
self.listOfEvents = None
self.form = ModelEventsForm(self)
示例12: __init__
def __init__(self, **kwargs):
TemplateView.__init__(self, **kwargs)
HasWorkingModel.__init__(self)
HasErrorMessages.__init__(self)
self.listOfCompartments = None
self.listOfUnits = None
self.form = ModelCompartmentsForm(self)
示例13: post
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)
示例14: load
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)
示例15: __init__
def __init__(self, **kwargs):
TemplateView.__init__(self, **kwargs)
HasWorkingModel.__init__(self)
HasErrorMessages.__init__(self)
self.listOfConstants = None
self.listComputations = None
self.computation = None
self.form = AnalyseBifurcationsForm(self)