Skip to content
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

Model to latex with mira task #4831

Merged
merged 13 commits into from
Sep 18, 2024

Conversation

Tom-Szendrey
Copy link
Contributor

@Tom-Szendrey Tom-Szendrey commented Sep 17, 2024

Description

Replacing sciml's model-to-latex with a mira task runner job.

  • This means we will have \operatorname rather than \mathrm I dont think this is an issue but please let me know
  • These equations are now able to have observables. I am confirming if we want to add these or not
  • The test added here is following the same idea of amr-to-mmt's test. AKA can the task be created.
    If we want more in depth testing please let me know either here or in the askem-server channel

Follow up:

Next PR will include the remaining removal of sciml. Just trying to limit the scope of this PR for readability.

Testing:

  • Go to a model page via project side panel, or model's drilldown in workflow and see equations:
    image

  • Go to a broken model page and see that it correctly errors out on the task runner rather than waiting for a timeout (no pic of logs thats kindve silly?)
    Here is a sample broken model where I have changed the expression to be a bit nonsense for t0 This will fail having a diagram as well as equations
    SIR with failed equations.json

@Tom-Szendrey Tom-Szendrey linked an issue Sep 17, 2024 that may be closed by this pull request
@Tom-Szendrey Tom-Szendrey changed the title Stil need to add tests. model to latex with mira task Sep 17, 2024
@Tom-Szendrey Tom-Szendrey changed the title model to latex with mira task Model to latex with mira task Sep 17, 2024
Thanks Yohann

Co-authored-by: Yohann Paris <github@yohannparis.com>
@Tom-Szendrey Tom-Szendrey merged commit c8e6da7 into main Sep 18, 2024
6 checks passed
@Tom-Szendrey Tom-Szendrey deleted the TS/4090-task-replace-model-to-equations-code branch September 18, 2024 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TASK]: Replace Model-to-equations code
6 participants