Skip to content

Conversation

jmborr
Copy link
Member

@jmborr jmborr commented Nov 14, 2024

Description of work

A documentation page briefly describes the classes implemented in the module

Fixes #38395
Companion to #38402

To test:

Just build the documentation (ninja docs-html) and review resulting file docs/html/api/python/mantid/utils/reflectometry.html

This does not require release notes


Reviewer

Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.

Code Review

  • Is the code of an acceptable quality?
  • Does the code conform to the coding standards?
  • Are the unit tests small and test the class in isolation?
  • If there is GUI work does it follow the GUI standards?
  • If there are changes in the release notes then do they describe the changes appropriately?
  • Do the release notes conform to the release notes guide?

Functional Tests

  • Do changes function as described? Add comments below that describe the tests performed?
  • Do the changes handle unexpected situations, e.g. bad input?
  • Has the relevant (user and developer) documentation been added/updated?

Does everything look good? Mark the review as Approve. A member of @mantidproject/gatekeepers will take care of it.

Gatekeeper

If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.

Introduced a UML class diagram to the documentation to illustrate the main classes supporting the SaveISISReflectometryORSO algorithm and their relationships. This should help users and developers to better understand the structure and dependencies involved.

Signed-off-by: Jose Borreguero <borreguero@gmail.com>
Changed the image width from 80% to 70% in the documentation for the SaveISISReflectometryORSO algorithm. This adjustment aims to improve layout and readability within the documentation.

Signed-off-by: Jose Borreguero <borreguero@gmail.com>
Deleted the outdated class diagram image and its references from the documentation. Also, added a new section under `mantid.utils` for reflectometry utilities, detailing the `orso_helper` module and its functionality.

Signed-off-by: Jose Borreguero <borreguero@gmail.com>
Clarify the function of the orsopy library in relation to ORSO data, specifying supported file formats. Add references for ORSO specifications and the orsopy library for further details and compliance.

Signed-off-by: Jose Borreguero <borreguero@gmail.com>
@jmborr jmborr added the Maintenance Unassigned issues to be addressed in the next maintenance period. label Nov 14, 2024
@jmborr jmborr added this to the Release 6.12 milestone Nov 14, 2024
@jmborr jmborr self-assigned this Nov 14, 2024
Signed-off-by: Jose Borreguero <borreguero@gmail.com>
Copy link
Contributor

@rbauststfc rbauststfc left a comment

Choose a reason for hiding this comment

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

Thanks very much for putting this together! The class diagram is very useful and the wording in the document is really clear. I'm sure this will be really useful for people trying to use these helper classes going forward.

Just one thing I wanted to double check - I notice that we're using itallics to highlight things like mantid.utils.reflectometry.orso_helper and the helper class names, rather than using double apostrophes (i.e. the way .ort and .orb are highlighted)? My feeling is that the double apostrophes are a bit more common elsewhere in the Mantid docs. That said, this still looks good as it is, so I'm happy to go with whatever you prefer here - just let me know and I'll be happy to approve once the tests are passing.

@sf1919
Copy link
Contributor

sf1919 commented Nov 15, 2024

I've set the tests that failed to re-run as looking at them both I think the runners flaked out rather than there being a test failure.

@rbauststfc rbauststfc added ISIS: LSS Issue and pull requests relating to SANS and Reflectometry (Large Scale Structures) at ISIS ORNL Team Issues and pull requests managed by the ORNL development team labels Nov 15, 2024
Updated documentation to use double backticks for module and class names to improve consistency and readability. This change affects the `mantid.utils.reflectometry.orso_helper` module and its related class descriptions.

Signed-off-by: Jose Borreguero <borreguero@gmail.com>
@jmborr
Copy link
Member Author

jmborr commented Nov 15, 2024

Just one thing I wanted to double check - I notice that we're using itallics to highlight things like mantid.utils.reflectometry.orso_helper and the helper class names, rather than using double apostrophes (i.e. the way .ort and .orb are highlighted)? My feeling is that the double apostrophes are a bit more common elsewhere in the Mantid docs.

I switched to double apostrophes 🙂

Copy link
Contributor

@rbauststfc rbauststfc left a comment

Choose a reason for hiding this comment

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

Brilliant, thanks @jmborr, the page is rendering well with the double apostrophes. Thanks again for putting all of this together!

@peterfpeterson peterfpeterson merged commit f823e0c into main Nov 18, 2024
11 checks passed
@jmborr jmborr deleted the isis_orso_docs_update branch November 18, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ISIS: LSS Issue and pull requests relating to SANS and Reflectometry (Large Scale Structures) at ISIS Maintenance Unassigned issues to be addressed in the next maintenance period. ORNL Team Issues and pull requests managed by the ORNL development team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document the new utility module mantid.utils.reflectometry.orso_helper
4 participants