Skip to content

Commit

Permalink
Add amr example
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Jul 11, 2023
1 parent 115c63f commit 7c43fb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mira/dkg/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
#: PetriNetModel json example
petrinet_json = PetriNetModel(Model(sir)).to_pydantic()
askenet_petrinet_json = AskeNetPetriNetModel(Model(sir)).to_pydantic()
askenet_petrinet_json_units_values = AskeNetPetriNetModel(
Model(sir_parameterized_init)
).to_pydantic()


@model_blueprint.post(
Expand Down Expand Up @@ -256,7 +259,7 @@ def dimension_transform(
query: Dict[str, Any] = Body(
...,
example={
"model": askenet_petrinet_json, # fixme: is this the right example?
"model": askenet_petrinet_json_units_values,
"counts_units": "persons",
"norm_factor": 1e5,
},
Expand Down

0 comments on commit 7c43fb1

Please sign in to comment.