Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Mar 1, 2024
1 parent 5968e21 commit c2a9bd1
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 50 deletions.
11 changes: 7 additions & 4 deletions biosimulator_processes/processes/copasi_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(self, config=None, core=None):
name='CopasiProcess Model',
**model_units)

self.model_changes: Dict = self.config['model'].get('model_changes', {})
self.model_changes = self.config['model'].get('model_changes', {})

# add reactions
reaction_changes: Dict = self.model_changes.get('reaction_changes', None)
Expand All @@ -147,9 +147,12 @@ def __init__(self, config=None, core=None):
species_changes = self.model_changes.get('species_changes', None)
if species_changes is not None:
if isinstance(species_changes, dict):
for name, change in species_changes.items():
if change:
set_species(name, change, model=self.copasi_model_object)
print(f'THE CHANGES: {species_changes}')
for param_name, change in species_changes.items():
pass
# if not change:
# species_changes.pop(param_name)
# set_species(**species_changes, model=self.copasi_model_object)
elif isinstance(species_changes, list):
for species_change in species_changes:
set_species(**species_change, model=self.copasi_model_object)
Expand Down
Loading

0 comments on commit c2a9bd1

Please sign in to comment.