Skip to content

Commit

Permalink
#3 Use species ids
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Nov 14, 2023
1 parent 4350bf7 commit 4942e84
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions chaste_codegen_sbml/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4942e84

Please sign in to comment.