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

mrc-4588 Display model fit error details #199

Merged
merged 4 commits into from
Nov 9, 2023
Merged

mrc-4588 Display model fit error details #199

merged 4 commits into from
Nov 9, 2023

Conversation

EmmaLRussell
Copy link
Contributor

@EmmaLRussell EmmaLRussell commented Nov 5, 2023

This branch ensures that any error throws when a model fit starts running is saved to the state and displayed on the Fit tab.

An ErrorInfo component has been added to the tab, and if an error is present any previous fit results are faded, with a message shown in the "Action Required" space.

Steps to generate this error:
- go to Fit app in Wodin
- upload sample data (influenza_data(1).csv), go to options tab and fit tabs
- link "E"
- select "D" and "L" model parameters
- Fit model
- Change tolerance to 7 x 10^ -1
- Fit model

There is another potential error which we should also display, in the modelFit result - this could arise if the modelFit gets further than it does in this case, where an error is thrown in the initial call. But let's do that in another ticket: https://mrc-ide.myjetbrains.com/youtrack/issue/mrc-4680/Display-modelFit.result.error-in-Fit-tab

@EmmaLRussell EmmaLRussell changed the title display model fit error mrc-4588 Display model fit error details Nov 6, 2023
@EmmaLRussell EmmaLRussell marked this pull request as ready for review November 6, 2023 10:04
Copy link

codecov bot commented Nov 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
app/static/src/app/components/fit/FitTab.vue 100.00% <100.00%> (ø)
app/static/src/app/serialise.ts 100.00% <ø> (ø)
app/static/src/app/store/appState/mutations.ts 100.00% <ø> (ø)
app/static/src/app/store/modelFit/actions.ts 100.00% <100.00%> (ø)
app/static/src/app/store/modelFit/modelFit.ts 100.00% <ø> (ø)
app/static/src/app/store/modelFit/mutations.ts 100.00% <100.00%> (ø)
app/static/src/app/userMessages.ts 100.00% <ø> (ø)

📢 Thoughts on this report? Let us know!.

Copy link
Collaborator

@M-Kusumgar M-Kusumgar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Works like a charm :)

Copy link
Collaborator

@absternator absternator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. works great

@EmmaLRussell EmmaLRussell merged commit 71a052f into main Nov 9, 2023
3 checks passed
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.

3 participants