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

Add support for Empty Graphs #83

Merged
merged 7 commits into from
Oct 4, 2023
Merged

Add support for Empty Graphs #83

merged 7 commits into from
Oct 4, 2023

Conversation

janaknat
Copy link
Contributor

When comparing runs, if a key is not present for a particular run the graphs get misaligned. Prevent this by using empty graphs.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

emptytest.tar.gz

@@ -42,16 +42,14 @@ function getStatValues(run, elem, key, run_data) {
}

function getStatKeys(run, container_id, mb, keys, run_data) {
var data = keys;
data.forEach(function (value, index, arr) {
for (let i = 0; i < all_run_keys.length; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

where is all_run_keys coming from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is found it src/html_files/utils.ts.

Copy link
Contributor

Choose a reason for hiding this comment

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

is keys being used here? why not get all_run_keys as function parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Keys is used below. all_run_keys is global. We don't have to get as a function parameter.

@janaknat janaknat merged commit 3202157 into main Oct 4, 2023
5 checks passed
@janaknat janaknat deleted the empty-graph branch October 4, 2023 16:43
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.

2 participants