本文整理汇总了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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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