-
Notifications
You must be signed in to change notification settings - Fork 133
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
Omit nans in plotting functions, cast to numpy before plotting, fix axes indexing for 1D #1185
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1185 +/- ##
==========================================
- Coverage 82.13% 75.78% -6.36%
==========================================
Files 93 93
Lines 7458 7476 +18
==========================================
- Hits 6126 5666 -460
- Misses 1332 1810 +478
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work :) Thanks for fixing these issues. I found a few typos in the notebook.
You can also add the new notebook to the website/documentation i.e. add it (here)[https://github.com/sbi-dev/sbi/blob/main/docs/mkdocs.yml] to e.g. Analysis.
Additionally, CodeCov does complain that there are no unit tests. As this is purely for visualization (and was like this before), this is fine. But it might also be good to add a few simple tests to avoid errors like this in the future.
- Run plotting one 1d and nd, and assert if an error occurs.
- Run plotting on a list of samples, assert if error occurs
- Run plotting on nan and inf samples, assert if error occurs
I added tests. Not sure about what counts as a slow test. on my Mac, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Great work.
Tests are sufficiently fast.
I tried to build the docs to check if the new notebook is rendered correctly on the website. But for some reason building the docs locally does not work anymore (i.e. building fails as mkdocs does not find any source). It does not work also on main, @janfb do you have any idea why?
Yes, please see this comment: #1147 (comment) Please note that we should only build the website locally (mkdocs serve) and not deploy it yet, because we want the docs and API refs on the website to be in sync with the latest release (Dec 2023). |
What does this implement/fix? Explain your changes
Does this close any currently open issues?
Fixes #1184 #1059
Any relevant code examples, logs, error output, etc?
Any other comments?
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.
guidelines
with
pytest.mark.slow
.guidelines
main
(or there are no conflicts withmain
)