Skip to content

Commit

Permalink
Add description attribute to State class for petrinet amr, remove tra…
Browse files Browse the repository at this point in the history
…iling comma
  • Loading branch information
nanglo123 authored and bgyori committed Oct 23, 2024
1 parent f54dc4e commit 997d55c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mira/modeling/amr/petrinet.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ def __init__(self, model: Model):
var.concept.identifiers.items()
if k != 'biomodels.species'},
'modifiers': var.concept.context,
},

}
if var.concept.units:
states_dict['units'] = {
'expression': str(var.concept.units.expression),
Expand Down Expand Up @@ -408,6 +407,7 @@ class Units(BaseModel):
class State(BaseModel):
id: str
name: Optional[str] = None
description: Optional[str] = None
grounding: Optional[Dict] = None
units: Optional[Units] = None

Expand Down

0 comments on commit 997d55c

Please sign in to comment.