DARPA-ASKEM / terarium

https://app.terarium.ai
Apache License 2.0
12 stars 2 forks source link

[BUG]: SciML simulation does not work #3945

Closed YohannParis closed 1 day ago

YohannParis commented 3 weeks ago

Describe the issue Screenshot 2024-06-20 at 15 27 50

mwdchang commented 3 weeks ago

The model-configuration here is not well-formed, the rates are missing expression_mathml which are parsed and used in sciml-service. @YohannParis @blanchco

See: https://elasticsearch.staging.terarium.ai/tds_modelconfiguration_tera_2.0/_doc/9a1d2db9-49e7-45b2-a164-94a67de81737

          "rates": [
            {
              "target": "s",
              "expression": "-beta * s * i"
            },
            {
              "target": "i",
              "expression": "beta * s * i - gamma * i"
            },
            {
              "target": "r",
              "expression": "gamma * i"
            }
          ],
          "initials": [
            {
              "target": "s",
              "expression": "1000",
              "expression_mathml": "<cn>1000</cn>"
            },
            {
              "target": "i",
              "expression": "2",
              "expression_mathml": "<cn>2</cn>"
            },
            {
              "target": "r",
              "expression": "0",
              "expression_mathml": "<cn>0</cn>"
            }
          ]