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
Improve documentation for base simulation classes #1295
Conversation
But I would like in a very near future to look closer at PDESimulation classes.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1295 +/- ##
=======================================
Coverage 82.37% 82.37%
=======================================
Files 166 166
Lines 25379 25379
=======================================
Hits 20905 20905
Misses 4474 4474 ☔ View full report in Codecov by Sentry. |
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.
Thanks for this work @ghwilliams!
I think this is ready to be merged. I just left a few minor suggestions, mainly improving rst and LaTeX syntax in the docstrings.
Let me know what do you think.
@santisoler @dccowan Done all the suggested changes! |
Use r-string when including backslashes in the docstring. Fix syntax for the tip admonition.
…to Doc_BaseSimulations
77731f5
to
ec50ad1
Compare
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.
Hi @ghwilliams! Sorry for the delayed review of this PR. Thanks for applying the suggestions I made.
I just applied a few more that weren't resolved yet (no worries 🙂) and a some small changes to make flake8 happy. I also updated the branch against the latest changes in main
and solved a few conflicts in simulation.py
.
I left a little comment regarding the docstring of ExponentialSinusoidSimulation
. Beside that, I think this is ready to be merged!
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.
Thanks so much @ghwilliams and @santisoler for your work on this pr! It is awesome to see improvements to the docs. I have just a few minor inline comments on the pr. Feel free to let me know if anything is unclear
Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
This is looking great @ghwilliams! Thanks again for all the effort you put into this, and thanks @lheagy for the reviews. I'll merge it after CI passes. |
…al_update_21_release * commit '07aeb65de865cd9df55e2d51ca840ea9d60f2234': (67 commits) Fix rst syntax in release notes for v0.21.0 (simpeg#1434) Replace use of `refine_tree_xyz` in DCIP tutorials (simpeg#1381) Add new Issue template for making a release (simpeg#1410) Safely run reviewdog on `pull_request_target` events (simpeg#1427) Use reviewdog to annotate PR's with black and flake8 errors. (simpeg#1424) Remove the parameters argument from docstring (simpeg#1417) Add release notes for v0.21.1 (simpeg#1416) Fix hard dask dependency (simpeg#1415) Publish documentation on azure (simpeg#1412) Add release notes for SimPEG v0.21 (simpeg#1409) Bump Black version to 24.3.0 (simpeg#1403) Remove link to "twitter" (simpeg#1406) Add Ying and Williams to AUTHORS.rst (simpeg#1405) Dask MetaSim (simpeg#1199) Update year in LICENSE (simpeg#1404) Update AUTHORS.rst (simpeg#1259) Minor adjustments to Sphinx configuration (simpeg#1398) Enforce regularization `weights` as dictionaries (simpeg#1344) Improve documentation for base simulation classes (simpeg#1295) Add link to User Tutorials to navbar in docs (simpeg#1401) ... # Conflicts: # SimPEG/electromagnetics/time_domain/receivers.py # SimPEG/utils/__init__.py # SimPEG/utils/model_utils.py # tests/base/regularizations/test_full_gradient.py # tests/base/regularizations/test_regularization.py # tests/base/test_model_utils.py # tests/base/test_utils.py # tests/pf/test_forward_Mag_Linear.py
This is another step toward improving the documentation of the API.
This time I only worked on a single file (simulation.py).
I think that these changes make the documentation better, but by no means I consider it the best that can be done. So, it is a work in (eternal) progress.
Summary
Summary added before Squash and Merge:
Extend documentation for base simulation classes and in
SyntheticData
class. Fix typo and rst style inmesh_utils.py
. Addpymatsolver
to the list ofintersphinx_mapping
in Sphinx'sdocs/conf.py
.PR Checklist
expect style.
to a Pull Request
@simpeg/simpeg-developers
when ready for review.Reference issue
What does this implement/fix?
Additional information