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

Error in test_report.py #41

Open
jrood-nrel opened this issue Mar 5, 2019 · 8 comments
Open

Error in test_report.py #41

jrood-nrel opened this issue Mar 5, 2019 · 8 comments

Comments

@jrood-nrel
Copy link
Contributor

It seems like something may have changed in AMReX that is causing test_report.py to parse the some output wrong? I get errors in test_report.py:641 where in this code:

                if fields[0].startswith("variable"):
                    ht.header(fields)
                    continue

fields[0] is an out of bounds access. This was working until something changed March 4 and I don't update this repo nightly, but my testing updates AMReX nightly.

@drummerdoc
Copy link
Member

No clue. Can you submit an issue in the amrex repo? I'll ask around when I get into the office.

@zingale
Copy link
Member

zingale commented Mar 5, 2019

this may be due to the change in the compare tools. Can you point to the html output from a case that did work for this test?

@jrood-nrel
Copy link
Contributor Author

@zingale This repo https://github.com/AMReX-Combustion/PeleCRegressionTestResults/tree/master has the html output (I had to clone it locally to view the rendered HTML files). Everything but the Sod-1d test case seems to work. Looking at the HTML for the Sod-1d test case it has things like < variable not present in both files >

@jrood-nrel
Copy link
Contributor Author

Here is some debugging output where I print line which is used to populate q and then fields:

                print(line)
                fields = [q.strip() for q in line.split("  ") if not q == ""]

                if fields[0].startswith("variable"):
                    ht.header(fields)
                    continue

debug.txt

@jrood-nrel
Copy link
Contributor Author

It seems to me like fields needs to be guarded in all references to it in case it is null due to q being blank. Or the if not q == "" just needs to be removed?

@zingale
Copy link
Member

zingale commented Mar 7, 2019

The < variable not present in both files > arises when you have added variables to the plotfile in your code recently, that are not in the benchmark.

Can you send me the tarred up output file the comparison is failing on along with the benchmark so I can try to reproduce this? It is not obvious what the issue is.

@jrood-nrel
Copy link
Contributor Author

I guess one thing I haven't done is update the benchmarks to try to solve this. Partly because changes have been made in PeleC that we need to verify before updating the benchmarks. Beyond trying to reproduce this, does #42 look like a fair solution? It seems like a lot of work to try to recreate this elsewhere, and the benchmarks are 120MB. Maybe this will go away once we update the benchmarks, so lets wait until I am able to do that.

@jrood-nrel
Copy link
Contributor Author

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

No branches or pull requests

3 participants