Closed vandalt closed 2 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
py/dynesty/plotting.py | 7 | 14 | 50.0% | ||
<!-- | Total: | 7 | 14 | 50.0% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
py/dynesty/plotting.py | 2 | 78.13% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 1579868198: | -0.1% |
Covered Lines: | 3500 |
Relevant Lines: | 4075 |
Sorry for the delay. I merged it (after adding a test with logplot=True) Thank you for the contribution
Hello,
I was facing a case where the final
logz
is high (around 2000). Everything works fine, but when I try to generate therunplot()
, I get a NaN/Inf matplotlib error (see full error below). I tried using thelogplot=True
option, but because it does not use the log directly and still usesnp.exp(logz)
before scaling the axes in log, the result was the same.I tried to use logz directly in the plot when
logplot=True
and it did fix the issue. The changes are similar to what is done in the ultranest version of this function.Thank you!
Full error message (which is fixed by the PR when settings
logplot=True
):