Repository navigation
docs: add embedding network examples and fix example headings - #2120
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@Ashwini8686 thanks for the PR! I will review it after November 9. Thanks, Jan |
26 docstrings started their example with "Example:" over a dashed underline. That is neither the Google form ("Example:" with an indented block) nor the numpy form ("Example" with an underline), so napoleon passed the heading through as raw reST. The API reference then turned it into a page section that also took in the method documentation below it, for example on the NPE_C page.
Dropping the colon makes it a numpy-style section, which renders as a label inside the docstring, like the new CNNEmbedding and FCEmbedding examples. The contributing guide now shows this form.
|
@Ashwini8686 thanks for adding the examples! Both run as shown, also with the recent changes to these embedding nets on While checking how they render, I found that most other docstring examples in sbi use an
thanks, Jan |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2120 +/- ##
=======================================
Coverage 91.30% 91.30%
=======================================
Files 148 148
Lines 14970 14970
=======================================
Hits 13669 13669
Misses 1301 1301
Flags with carried forward coverage won't be shown. Click here to find out more.
|
What does this PR do?
Validation