Skip to content

Commit

Permalink
Merge pull request #199 from indralab/fix_askenet_processing
Browse files Browse the repository at this point in the history
Fix processing and assembling parameter values to/from Petri nets
  • Loading branch information
bgyori authored Jul 11, 2023
2 parents a499579 + 3c5c9a3 commit 375da30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mira/modeling/askenet/petrinet.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __init__(self, model: Model):
if param.placeholder:
continue
param_dict = {'id': str(key)}
if param.value:
if param.value is not None:
param_dict['value'] = param.value
if not param.distribution:
pass
Expand Down
1 change: 1 addition & 0 deletions mira/sources/askenet/petrinet.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def template_model_from_askenet_json(model_json) -> TemplateModel:

param_values = {
p['id']: p['value'] for p in ode_semantics.get('parameters', [])
if p.get('value') is not None
}

# Next we process initial conditions
Expand Down

0 comments on commit 375da30

Please sign in to comment.