-
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]: "Stratify" seems to make unexpected changes to model structure (overwrites a template) #411
Comments
@nanglo123 @kkaris @bgyori Could you take a look when convenient? This is a step in the Hackathon Decision Maker Scenario, where Model A is stratified into a Europe-Africa model. |
I think Tenzin and I found the source of the problem: MIRA |
So this issue actually stems from the fact that our stratification method will assign template names if no template names exist. If there are multiple template names under the same strata then they will have the same name. Since Terarium relies on template naming to assign rate laws to their appropriate template, this is where the issue of mismtached rate laws derives from. It could be a discussion topic on whether we want to remove template renaming altogether and have Terarium rely on other parts of a template to identify them or if we should change our renaming process. I'm closing the issue now as the issue has been partially adressed as we now make sure to add a template name for all template types during ingestion if they have a name, removing lossiness for template names in the end-to-end proccesing of models in MIRA. Maybe this topic could be repurposed as a feature request as I don't think it's necessarily a "bug" if we have "bad" template names as it may not be the best approach to identify templates just by name or to name templates if they don't have one. |
Before stratification:
After stratification:
This model was generated from LaTeX equations.
Model A (local, edited).json
Stratified model:
Model A (local, edited, strat).json
Note that the
Sl(t)
equation had a term with factorSl(t) * v * (...)
but it gets overwritten withSh(t) * (...)
after stratification:The text was updated successfully, but these errors were encountered: