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


Python HasWorkingModel.isChooseModel方法代码示例

本文整理汇总了Python中signetsim.views.HasWorkingModel.HasWorkingModel.isChooseModel方法的典型用法代码示例。如果您正苦于以下问题:Python HasWorkingModel.isChooseModel方法的具体用法?Python HasWorkingModel.isChooseModel怎么用?Python HasWorkingModel.isChooseModel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在signetsim.views.HasWorkingModel.HasWorkingModel的用法示例。


在下文中一共展示了HasWorkingModel.isChooseModel方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: post

# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingModel.isChooseModel(self, request):
				self.load(request, *args, **kwargs)

		return TemplateView.get(self, request, *args, **kwargs)
开发者ID:msreis,项目名称:SigNetSim,代码行数:11,代码来源:AnalyseSensitivityView.py

示例2: post

# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingModel.isChooseModel(self, request):
				self.load(request, *args, **kwargs)

			# elif request.POST['action'] == "edit_model_name":
			# 	self.saveName(request)
			#
			# elif request.POST['action'] == "edit_model_notes":
			# 	self.saveNotes(request)


			elif request.POST['action'] == "choose_time_unit":
				self.saveTimeUnit(request)

			elif request.POST['action'] == "reset_time_unit":
				self.resetTimeUnit(request)


			elif request.POST['action'] == "choose_substance_unit":
				self.saveSubstanceUnit(request)

			elif request.POST['action'] == "reset_substance_unit":
				self.resetSubstanceUnit(request)


			elif request.POST['action'] == "choose_extent_unit":
				self.saveExtentUnit(request)

			elif request.POST['action'] == "reset_extent_unit":
				self.resetExtentUnit(request)


			elif request.POST['action'] == "choose_scaling_factor":
				self.saveScalingFactor(request)

			elif request.POST['action'] == "reset_scaling_factor":
				self.resetScalingFactor(request)


			elif request.POST['action'] == "choose_sbml_level":
				self.saveSbmlLevel(request)

			# elif request.POST['action'] == "set_model_publication":
			# 	self.setModelPublication(request)

		# self.savePickledModel(request)
		return TemplateView.get(self, request, *args, **kwargs)
开发者ID:msreis,项目名称:SigNetSim,代码行数:53,代码来源:ModelMiscView.py

示例3: post

# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
	def post(self, request, *args, **kwargs):
		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingModel.isChooseModel(self, request):
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "delete":
				self.deleteUnitDefinition(request)

			elif request.POST['action'] == "save":
				self.saveUnitDefinition(request)

		# self.savePickledModel(request)
		return TemplateView.get(self, request, *args, **kwargs)
开发者ID:msreis,项目名称:SigNetSim,代码行数:17,代码来源:ModelUnitsView.py

示例4: post

# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingModel.isChooseModel(self, request):
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "simulate_steady_states":
				self.simulateModel(request)

			elif request.POST['action'] == "save_simulation":
				self.saveSimulation(request)

		return TemplateView.get(self, request, *args, **kwargs)
开发者ID:msreis,项目名称:SigNetSim,代码行数:17,代码来源:SteadyStatesSimulationView.py

示例5: post

# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingModel.isChooseModel(self, request):
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "compute_curve":
				self.computeCurve(request)
				self.loadComputations()

			elif request.POST['action'] == "delete":
				self.deleteCurve(request)
				self.loadComputations()

		return TemplateView.get(self, request, *args, **kwargs)
开发者ID:msreis,项目名称:SigNetSim,代码行数:19,代码来源:AnalyseBifurcationView.py

示例6: post

# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingModel.isChooseModel(self, request):
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "delete_optimization":
				self.deleteOptimization(request)

			elif request.POST['action'] == "stop_optimization":
				self.stopOptimization(request)

			elif request.POST['action'] == "restart_optimization":
				self.restartOptimization(request)

		return TemplateView.get(self, request, *args, **kwargs)
开发者ID:msreis,项目名称:SigNetSim,代码行数:20,代码来源:ListOfOptimizationsView.py

示例7: post

# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)
		# HasWorkingModel.load(self, request, *args, **kwargs)

		if "action" in request.POST:
			if HasWorkingModel.isChooseModel(self, request):
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "edit_model_name":
				self.saveName(request)

			elif request.POST['action'] == "edit_model_notes":
				self.saveNotes(request)

			elif request.POST['action'] == "set_model_publication":
				self.setModelPublication(request)

		# self.savePickledModel(request)
		return TemplateView.get(self, request, *args, **kwargs)
开发者ID:msreis,项目名称:SigNetSim,代码行数:22,代码来源:ModelAnnotationsView.py

示例8: post

# 需要导入模块: from signetsim.views.HasWorkingModel import HasWorkingModel [as 别名]
# 或者: from signetsim.views.HasWorkingModel.HasWorkingModel import isChooseModel [as 别名]
	def post(self, request, *args, **kwargs):

		self.load(request, *args, **kwargs)

		if "action" in request.POST:

			if HasWorkingModel.isChooseModel(self, request):
				self.load(request, *args, **kwargs)

			elif request.POST['action'] == "delete":
				self.deleteReaction(request)

			elif request.POST['action'] == "save":
				self.saveReaction(request)

			elif request.POST['action'] == "edit_kineticlaw":
				self.form.editKineticLaw(request)

		self.load(request, *args, **kwargs)
		# self.savePickledModel(request)
		return TemplateView.get(self, request, *args, **kwargs)
开发者ID:msreis,项目名称:SigNetSim,代码行数:23,代码来源:ModelReactionsView.py


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