From 4942e8418b8cbdf4c96f029df78cca8ac542fc50 Mon Sep 17 00:00:00 2001 From: Kwabena N Amponsah Date: Tue, 14 Nov 2023 08:17:48 +0000 Subject: [PATCH] #3 Use species ids --- chaste_codegen_sbml/translator.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/chaste_codegen_sbml/translator.py b/chaste_codegen_sbml/translator.py index 24cb914..b87a48c 100644 --- a/chaste_codegen_sbml/translator.py +++ b/chaste_codegen_sbml/translator.py @@ -434,19 +434,6 @@ def GetReactionFormula(n, model): ################################## NEW ###################################################### -def GetSpeciesNames(model,string): - - num_species = model.getNumSpecies() - - for i in range(num_species): - species = model.getSpecies(i) - species_id= species.getId() - species_name = species.getName().strip().replace(" ","_") - # if (species_name != ''): - # string = string.replace(species_id,species_name) - - return string - def GetParameterNames(model,string): num_parameters = model.getNumParameters() @@ -818,8 +805,6 @@ def GetStateVariableString(model): else: state_variables_string += "\n" - state_variables_string = GetSpeciesNames(model,state_variables_string) - return state_variables_string ##State parameter functions