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

5059 bug unable to see intervention in output chart for calibrate #5110

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mloppie
Copy link
Contributor

@mloppie mloppie commented Oct 9, 2024

Fixes missing intervention marker in the calibrate node and calibrate drilldown

Screenshot 2024-10-09 153541
Screenshot 2024-10-09 153532

Resolves #5059

Comment on lines +753 to 754
dx: labelXOffset,
dy: -10
Copy link
Member

Choose a reason for hiding this comment

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

Why only dx deserves a constant?

Object.entries(groupedInterventionOutputs.value).forEach((item) => {
item[1].forEach((intervention) => {
chart.layer.push(...createInterventionChartMarkers([intervention], false, -80));
Copy link
Member

Choose a reason for hiding this comment

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

Why does the node chart uses -80 and not -180 like the drilldown?

item[1].forEach((intervention) => {
charts[variable].layer.push(...createInterventionChartMarkers([intervention], false, -180));
});
});
});
Copy link
Contributor

@jryu01 jryu01 Oct 9, 2024

Choose a reason for hiding this comment

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

It looks like we are applying all the interventions to the chart. We are going to end up plotting plotting interventions for variables like I, S, and R all on the same chart. It will create a issue such that chart for variable I also have intervention for other variables, for example S or R along with all interventions for parameters as well. I'm not sure if that's what we want to do. If we want still draw all interventions for parameters to the chart, we should at least filter out the intervention for non target state variables (e.g. S, R etc) I guess and only plot the interventions for the parameters (e.g. beta, alpha etc).

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.

[BUG]: Unable to see Intervention in Output Chart for Calibrate
3 participants