-
Notifications
You must be signed in to change notification settings - Fork 6
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
User friendly docs for operations #1054
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
samtygier-stfc
force-pushed
the
1052_operations_docs
branch
2 times, most recently
from
July 15, 2021 08:37
d878dbe
to
e9a49c6
Compare
samtygier-stfc
changed the title
Move test skipping into decorators to avoid errors with sphinx
User friendly docs for operations
Jul 15, 2021
samtygier-stfc
force-pushed
the
1052_operations_docs
branch
from
July 19, 2021 12:49
1ece62c
to
42ad3b8
Compare
Sphinx tries to import all the modules, so they need to not raise exceptions at import time.
Use the class docstring plus the parameter list from the filter_func.
Updates from feeback from Winfried
The help button in the operations window now links to the new user docs. THe new docs have a link to the API docs if needed.
samtygier-stfc
force-pushed
the
1052_operations_docs
branch
from
July 20, 2021 14:13
a7b1490
to
effe368
Compare
mantidimaging/core/operations/remove_dead_stripe/remove_dead_stripe.py
Outdated
Show resolved
Hide resolved
mantidimaging/core/operations/roi_normalisation/roi_normalisation.py
Outdated
Show resolved
Hide resolved
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.
The operations page looks significantly better which should improve user experience 👍. I will approve after comments are addressed.
Makes more sense (avoiding a divide by zero) and is functionally identical
StephenNneji
approved these changes
Jul 21, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Closes #898
(note the number is the branch name is wrong)
Description
Add extension to generate user friendly documentation for operations. Takes the docstring for the class, and the parameters from the
filter_func
method (with some standard parameters removed).Update doc strings for operations
Also: Move test skipping into decorators to avoid errors with sphinx
Testing & Acceptance Criteria
To build the docs locally run:
python3 ./setup.py docs
Docs will be written to docs/build/html , so for me operations docs are in ~/git/mantidimaging/docs/build/html/user_guide/operations/index.html
Help button in the operations window should link to something like https://mantidproject.github.io/mantidimaging/user_guide/operations/index.html#crop-coordinates
Documentation
Updated release notes