-
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
Epi Hackathon Scenario 5 stockflow.json does not pass validator #292
Comments
The most recent version of python ~/Projects/Proposals/ASKEM/Model-Representations/validation/model_inventory.py \
--format md \
https://raw.githubusercontent.com/gyorilab/mira/main/notebooks/hackathon_2024.02/scenario5/scenario_5_stockflow.json
|
This analysis doesn't seem to be working correctly for the stock and flow AMR. This AMR represents flow rates directly on stocks. There is no "rate semantics section" like for the Petri net AMR. E.g., "model": {
"flows": [
{
"id": "1",
"name": "new_cases_reported",
"upstream_stock": null,
"downstream_stock": "cumulative_cases_reported",
"rate_expression": "disease_progression + isolation_rate_asym + isolation_rate_sym + q_disease_progress_rate",
"rate_expression_mathml": "<apply><plus/><ci>disease_progression</ci><ci>isolation_rate_asym</ci><ci>isolation_rate_sym</ci><ci>q_disease_progress_rate</ci></apply>"
},
... I think there is likely also a problem with how the script above checks for "initial values present". These are available in the semantics/ode/initials section, e.g., {
"target": "susceptibles",
"expression": "1339200000.0",
"expression_mathml": "<cn>1339200000.0</cn>"
}, @akruel01 and @djinnome, please check the validation script to see if it can be generalized to the stock and flow AMR. Still, I'm sure there could be other problems with the AMR that have to be sorted out. Please send these along, if you confirm they are indeed issues in the AMR. |
Conceptual note: The script is an inventory not a validator. It a tool to build a validator on, but I tried to just report what is/not present. That being said, you are correct that it needs to be refined. I see two things:
@bgyori Does that sound fair? |
git clone https://github.com/gyorilab/mira.git git clone https://github.com/DARPA-ASKEM/Model-Representations.git cd Model-Representations/validation python model_inventory.py --format md ../../mira/notebooks/hackathon_2024.02/scenario5/scenario_5_stockflow.json
The text was updated successfully, but these errors were encountered: