当前位置: 首页>>代码示例>>Python>>正文


Python HasWorkingModel.load方法代码示例

本文整理汇总了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
开发者ID:msreis,项目名称:SigNetSim,代码行数:9,代码来源:ModelCompartmentsView.py

示例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()
开发者ID:msreis,项目名称:SigNetSim,代码行数:10,代码来源:TimeSeriesSimulationView.py

示例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
开发者ID:msreis,项目名称:SigNetSim,代码行数:10,代码来源:GetSubstitution.py

示例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()
开发者ID:msreis,项目名称:SigNetSim,代码行数:10,代码来源:ModelRulesView.py

示例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()
开发者ID:msreis,项目名称:SigNetSim,代码行数:10,代码来源:ModelSpeciesView.py

示例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()
开发者ID:msreis,项目名称:SigNetSim,代码行数:11,代码来源:ModelParametersView.py

示例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)
开发者ID:msreis,项目名称:SigNetSim,代码行数:12,代码来源:ModelOptimizationView.py

示例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)
开发者ID:msreis,项目名称:SigNetSim,代码行数:12,代码来源:GetEvent.py

示例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()
开发者ID:msreis,项目名称:SigNetSim,代码行数:13,代码来源:ModelSubmodelsView.py

示例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()
开发者ID:msreis,项目名称:SigNetSim,代码行数:15,代码来源:ModelMiscView.py

示例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]
开发者ID:msreis,项目名称:SigNetSim,代码行数:15,代码来源:ModelAnnotationsView.py

示例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)
开发者ID:msreis,项目名称:SigNetSim,代码行数:18,代码来源:ModelEventsView.py

示例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)]
开发者ID:msreis,项目名称:SigNetSim,代码行数:22,代码来源:ModelOverviewView.py

示例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()
开发者ID:msreis,项目名称:SigNetSim,代码行数:8,代码来源:ModelUnitsView.py

示例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)
开发者ID:msreis,项目名称:SigNetSim,代码行数:8,代码来源:DataOptimizationView.py


注:本文中的signetsim.views.HasWorkingModel.HasWorkingModel.load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。