Skip to content

Commit

Permalink
fix bug args=>arguments in sbml import
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jun 10, 2024
1 parent 1cbe8d5 commit dbe8134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/heta.json-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@
"FunctionDefinition": {
"type": "object",
"properties": {
"args": {
"arguments": {
"type": "array",
"items": { "$ref": "#/definitions/ID" }
},
"expr": { "$ref": "#/definitions/ExprString" }
"math": { "$ref": "#/definitions/ExprString" }
}
},

Expand Down
2 changes: 1 addition & 1 deletion src/module-system/sbml-parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function functionDefinitionToQ(x) {
}

// get argument ids
q.args = lambdaElement.elements
q.arguments = lambdaElement.elements
?.filter((y) => y.name === 'bvar')
.map((y) => y.elements && y.elements.find((z) => z.name === 'ci'))
.map((y) => y.elements && y.elements.find((z) => z.type === 'text'))
Expand Down

0 comments on commit dbe8134

Please sign in to comment.