-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: AMR ingest error caused by SKEMA bug #396
Comments
Yes, we can handle the invalid value here. @nanglo123 could you check? |
A secondary issue (SKEMA bug?) is that MIRA interprets this AMR and duplicates this transition into 2 |
The structure
is not exactly what we would consider a Natural Degradation of S, which would be
which is probably the reason for the unexpected result. |
Totally. SKEMA seems to create these Currently, MIRA does accept the above structure when I correct the output to |
If I type in the following set of equations: \frac{d S}{d t} = -\gamma S - \mu R
\frac{d R}{d t} = \gamma S SKEMA returns this AMR: "transitions": [
{
"id": "s0",
"input": [
"S",
"R"
]
},
{
"id": "t0",
"input": [
"S"
],
"output": [
"R"
]
}
] When I have MIRA ingest this model, that one "transitions": [
{
"id": "s0",
"input": [
"S"
],
"output": [],
"properties": {
"name": "s0"
}
},
{
"id": "s0",
"input": [
"R"
],
"output": [],
"properties": {
"name": "s0"
}
},
{
"id": "t0",
"input": [
"S"
],
"output": [
"R"
],
"properties": {
"name": "t0"
}
}
] These weird edge cases (all involving AMR files that are inconsistent with the AMR schema) are all due to bugs in SKEMA, giving us all the more reason to replace it sooner, rather than later with the eventual LaTeX-SymPy-MMT-AMR pipeline. I think covering the initial issue of |
We have this source model from a paper:
It has several natural birth and death processes. The SKEMA model-from-equations tool only partially supports such processes and produces this AMR JSON:
pretty.json
Note that the natural birth process was ignored by SKEMA and the death processes are represented for example as:
MIRA's
sources.amr.petrinet
throws an error from this AMR JSON because"output"
should be[]
and notnull
. Replacing all the"output": null
with"output": []
allows MIRA to produce a valid template model.The AMR schema does specify that
output
needs to be an array of strings.Should MIRA cover for this bug in SKEMA?
The text was updated successfully, but these errors were encountered: