Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fix: update fluxModel to strataModel in stratify endpoint (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
echl authored Jul 26, 2023
1 parent 875a656 commit 31502a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ModelService.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ end
schema:
type: object
properties:
baseMOdel:
baseModel:
type: object
fluxModel:
strataModel:
type: object
responses:
'200':
Expand All @@ -114,10 +114,10 @@ route("/api/stratify", method=POST) do
jsonData = parse(rawPayload)

baseModel = jsonData["baseModel"]
fluxModel = jsonData["fluxModel"]
strataModel = jsonData["strataModel"]

x = TypedASKEMPetriNet(ASKEMPetriNet(baseModel))
y = TypedASKEMPetriNet(ASKEMPetriNet(fluxModel))
y = TypedASKEMPetriNet(ASKEMPetriNet(strataModel))

result = StratifiedASKEMPetriNet(x, y)

Expand Down

0 comments on commit 31502a0

Please sign in to comment.