Skip to content

Commit

Permalink
Fix time parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Jul 13, 2023
1 parent 83567c4 commit cf14d16
Showing 1 changed file with 1 addition 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 @@ -230,7 +230,7 @@ def to_pydantic(self, name=None, description=None, model_version=None) -> "Model
initials=[Initial.parse_obj(i) for i in self.initials],
parameters=[Parameter.parse_obj(p) for p in self.parameters],
observables=[Observable.parse_obj(o) for o in self.observables],
time=Time.parse_obj(self.time)
time=Time.parse_obj(self.time) if self.time else None
)),
metadata=self.metadata,
)
Expand Down

0 comments on commit cf14d16

Please sign in to comment.