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


Python HasWorkingModel.get_context_data方法代码示例

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


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

示例1: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)
		kwargs['list_of_species'] = self.listOfSpecies
		kwargs['list_of_reactions'] = self.listOfReactions
		kwargs['list_of_compartments'] = self.listOfCompartments
		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:9,代码来源:ModelOverviewView.py

示例2: get_context_data

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

		kwargs = HasErrorMessages.get_context_data(self, **kwargs)
		kwargs = HasWorkingModel.get_context_data(self, **kwargs)
		kwargs['list_of_events'] = self.listOfEvents
		kwargs['list_of_variables'] = [var.getNameOrSbmlId() for var in self.listOfVariables]
		kwargs['form'] = self.form
		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:10,代码来源:ModelEventsView.py

示例3: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)
		kwargs = HasErrorMessages.get_context_data(self, **kwargs)
		kwargs['list_of_compartments'] = self.listOfCompartments
		kwargs['list_of_units'] = [unit.getName() for unit in self.listOfUnits]
		kwargs['form'] = self.form
		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:10,代码来源:ModelCompartmentsView.py

示例4: get_context_data

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

		kwargs['unit_definitions'] = self.listOfUnitDefinitions
		kwargs['unit_list'] = Unit.unit_id.values()
		kwargs['form'] = self.form

		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:10,代码来源:ModelUnitsView.py

示例5: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)

		kwargs['list_of_variables'] = [var.getNameOrSbmlId() for var in self.listOfVariables]
		kwargs['list_of_rules'] = self.listOfRules
		kwargs['rules_types'] = self.ruleTypes
		kwargs['form'] = self.form

		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:12,代码来源:ModelRulesView.py

示例6: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)
		kwargs = HasErrorMessages.get_context_data(self, **kwargs)
		kwargs['list_of_constants'] = [const.getNameOrSbmlId() for const in self.listOfConstants]
		kwargs['list_of_computations'] = self.listOfComputations
		kwargs['colors'] = Settings.default_colors
		kwargs['form'] = self.form

		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:12,代码来源:AnalyseBifurcationView.py

示例7: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)
		kwargs = HasErrorMessages.get_context_data(self, **kwargs)

		kwargs['list_of_parameters'] = self.listOfParameters
		kwargs['list_of_reactions'] = ["Global"] + [reaction.getNameOrSbmlId() for reaction in self.listOfReactions]
		kwargs['list_of_units'] = [unit.getNameOrSbmlId() for unit in self.listOfUnits]
		kwargs['form'] = self.form

		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:13,代码来源:ModelParametersView.py

示例8: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)

		kwargs['experimental_data_sets'] = [experiment.name for experiment in Experiment.objects.filter(project=self.project)]
		kwargs['list_of_species'] = self.getModelInstance().listOfSpecies
		kwargs['list_of_parameters'] = self.getModelInstance().listOfParameters
		kwargs['selected_datasets_ids'] = self.form.selectedDataSetsIds
		kwargs['selected_parameters'] = self.form.selectedParameters

		kwargs['form'] = self.form
		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:14,代码来源:DataOptimizationView.py

示例9: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)
		kwargs = HasErrorMessages.get_context_data(self, **kwargs)

		kwargs['list_of_species'] = self.listOfSpecies
		kwargs['list_of_compartments'] = [comp.getNameOrSbmlId() for comp in self.listOfCompartments]
		kwargs['list_of_species_type'] = ["Amount", "Concentration"]
		kwargs['list_of_units'] = [unit.getName() for unit in self.listOfUnits]

		kwargs['form'] = self.form
		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:14,代码来源:ModelSpeciesView.py

示例10: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)
		kwargs = HasErrorMessages.get_context_data(self, **kwargs)

		kwargs['page_address'] = reverse('edit_annotations')

		kwargs['model_history'] = self.modelHistory
		kwargs['model_publication'] = self.modelPublication
		kwargs['form'] = self.form

		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:14,代码来源:ModelAnnotationsView.py

示例11: get_context_data

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

		kwargs = HasErrorMessages.get_context_data(self, **kwargs)
		kwargs = HasWorkingModel.get_context_data(self, **kwargs)

		kwargs['list_of_reactions'] = self.listOfReactions
		kwargs['list_of_kinetic_laws'] = self.listOfKineticLaws
		kwargs['list_of_species'] = [species.getNameOrSbmlId() for species in self.listOfSpecies]
		kwargs['list_of_parameters'] = [parameter.getNameOrSbmlId() for parameter in self.listOfParameters]
		kwargs['reaction_types'] = self.reactionTypes
		kwargs['parameters_list'] = self.parametersList
		kwargs['allow_reversible'] = self.allowReversibleList

		kwargs['form'] = self.form

		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:18,代码来源:ModelReactionsView.py

示例12: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)
		kwargs = HasErrorMessages.get_context_data(self, **kwargs)

		kwargs['page_address'] = reverse('edit_overview')

		kwargs['list_of_units'] = [unit.getName() for unit in self.listOfUnits]
		kwargs['list_of_parameters'] = [parameter.getNameOrSbmlId() for parameter in self.listOfParameters]
		kwargs['sbml_levels'] = self.sbmlLevels
		kwargs['model_history'] = self.modelHistory
		kwargs['model_publication'] = self.modelPublication
		kwargs['form'] = self.form




		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:20,代码来源:ModelMiscView.py

示例13: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)

		kwargs['species'] = self.listOfVariables
		kwargs['reactions'] = self.listOfReactions

		kwargs['ids_species_selected'] = self.form.selectedSpeciesIds
		kwargs['ids_reactions_selected'] = self.form.selectedReactionsIds

		kwargs['steady_states'] = self.form.steady_states
		kwargs['sim_results'] = self.simResults
		kwargs['t_unit'] = self.t_unit
		kwargs['y_unit'] = self.y_unit
		kwargs['y_max'] = self.y_max
		kwargs['colors'] = Settings.default_colors

		kwargs['form'] = self.form
		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:21,代码来源:SteadyStatesSimulationView.py

示例14: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)
		kwargs = HasErrorMessages.get_context_data(self, **kwargs)

		kwargs['list_of_submodels'] = self.listOfSubmodels
		kwargs['list_of_submodels_names'] = [submodel.getNameOrSbmlId() for submodel in self.listOfSubmodels]
		kwargs['list_of_substitutions'] = self.listOfSubstitutions

		kwargs['list_of_project_models'] = [str(pm.name) for pm in self.listOfProjectModels]
		kwargs['list_of_submodels_refs'] = self.listOfSubmodelsRefs
		kwargs['list_of_submodel_types'] = self.listOfSubmodelTypes
		kwargs['submodel_types'] = ["Internal model definition", "External model definition"]
		kwargs['list_of_objects'] = self.listOfObjects
		kwargs['list_of_conversion_factors'] = [conv_factor.getNameOrSbmlId() for conv_factor in self.listOfConversionFactors]

		kwargs['form'] = self.form
		kwargs['form_subs'] = self.formSubstitutions

		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:22,代码来源:ModelSubmodelsView.py

示例15: get_context_data

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

		kwargs = HasWorkingModel.get_context_data(self, **kwargs)

		kwargs['species'] = self.listOfVariables
		kwargs['reactions'] = self.listOfReactions
		kwargs['experiments'] = self.experiments

		if self.experiment is not None:
			kwargs['experiment_name'] = self.experiment.name
			kwargs['experiment_observations'] = [condition.listOfExperimentalData for condition in self.experiment.listOfConditions.values()]

		kwargs['ids_species_selected'] = self.form.selectedSpeciesIds
		kwargs['ids_reactions_selected'] = self.form.selectedReactionsIds

		kwargs['sim_results'] = self.simResults
		kwargs['t_unit'] = self.t_unit
		kwargs['y_unit'] = self.y_unit
		kwargs['y_max'] = self.y_max
		kwargs['colors'] = Settings.default_colors
		kwargs['form'] = self.form

		return kwargs
开发者ID:msreis,项目名称:SigNetSim,代码行数:25,代码来源:TimeSeriesSimulationView.py


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