Skip to content

Commit

Permalink
add species not present in initial conditions for order_species_conce…
Browse files Browse the repository at this point in the history
…ntration
  • Loading branch information
eadlg2 committed Apr 4, 2024
1 parent dbcbb9f commit 993fbdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/music_box_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def from_UI_JSON(cls, UI_JSON, species_list, reaction_list):

species_concentrations.append(SpeciesConcentration(species, concentration))

for species in species_list.species:
if not any(conc.species.name == species.name for conc in species_concentrations):
species_concentrations.append(SpeciesConcentration(species, 0))

# Set initial reaction rates
reaction_rates = []

Expand Down

0 comments on commit 993fbdf

Please sign in to comment.