Skip to content

Improve SumIntensitiesFilter docstrings to enhance user-facing explan…#3142

Draft
ashleymeigh2 wants to merge 2 commits into
mainfrom
improve-SumIntensitiesFilter-docstrings-for-user
Draft

Improve SumIntensitiesFilter docstrings to enhance user-facing explan…#3142
ashleymeigh2 wants to merge 2 commits into
mainfrom
improve-SumIntensitiesFilter-docstrings-for-user

Conversation

@ashleymeigh2

Copy link
Copy Markdown
Collaborator

…ations

Issue Closes #

Description

Improve and standardise docstrings for SumIntensitiesFilter to better support user-facing documentation and in-application guidance. These changes improve readability for developers and enhance downstream user documentation (e.g. tooltips, generated docs).

Developer Testing

  • I have verified unit tests pass locally: python -m pytest -vs
  • ...

Acceptance Criteria and Reviewer Testing

  • Unit tests pass locally: python -m pytest -vs
  • ...

Documentation and Additional Notes

@coveralls

coveralls commented Apr 30, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 67.947% (-0.05%) from 67.998% — improve-SumIntensitiesFilter-docstrings-for-user into main

@JackEAllen

Copy link
Copy Markdown
Collaborator

Does this PR link to an Issue? Maybe #3074 ?

@JackEAllen JackEAllen requested review from JackEAllen May 6, 2026 13:18
@JackEAllen JackEAllen self-assigned this May 6, 2026

@JackEAllen JackEAllen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for cleaning up after me and adding an improved docstring for the API docs. Looks good! Just a few suggestions

Comment thread mantidimaging/core/operations/sum_stack_intensities/sum_intensities.py Outdated
Comment thread mantidimaging/core/operations/sum_stack_intensities/sum_intensities.py Outdated
Comment thread mantidimaging/core/operations/sum_stack_intensities/sum_intensities.py Outdated
@JackEAllen JackEAllen marked this pull request as draft May 7, 2026 08:31
@ashleymeigh2 ashleymeigh2 marked this pull request as ready for review June 9, 2026 08:29
@ashleymeigh2 ashleymeigh2 moved this from Todo to Review in Mantid Imaging Work Jun 9, 2026

@JackEAllen JackEAllen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes, just one small comment to resolve a formatting issue and rebasing the commits to clean up the commit history / messages and this will be good to merge in

Comment on lines +30 to +36
Note:
- Both stacks must have identical shape (x, y, z).
- The z-axis typically represents projection angle or ToF bin.
- Projection angles are not required. If present, projections are sorted into angle order on load
(see :func:`loader.load <mantidimaging.core.io.loader.loader.load>`).
If matched angles between stacks to be summed together differ, a warning is raised.
- The primary stack is modified in-place.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you may need to play around with the line spacing as when I build the docs locally, the bullet point list does not format nicely and function reference formats the whole line as a code block instead of an inline element. if you add an empty line after Note: this should resolve this so instead of:

Image

You will get this:

Image

@github-project-automation github-project-automation Bot moved this from Review to Todo in Mantid Imaging Work Jun 12, 2026
@JackEAllen JackEAllen marked this pull request as draft June 12, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants