Skip to content

Add monitor count handling in LoadNexusProcessed and related tests#41072

Merged
KedoKudo merged 4 commits intomainfrom
save_monitor_count
Mar 20, 2026
Merged

Add monitor count handling in LoadNexusProcessed and related tests#41072
KedoKudo merged 4 commits intomainfrom
save_monitor_count

Conversation

@jmborr
Copy link
Member

@jmborr jmborr commented Mar 14, 2026

Description of work

Saving and loading monitor counts for the two types of peak workspaces.

Changes:

  • Write Monitor Count as a new NeXus table column for PeaksWorkspace (column_21) and LeanElasticPeaksWorkspace (column_18).
  • Load those columns in LoadNexusProcessed and apply them back onto each peak via setMonitorCount.
  • Add/extend C++ unit tests and a Python system test to validate save/load round-tripping of monitor counts.

Companion to #41073
Implements EWM 15113

To test:

After building this branch, run script EWM_15113_manual_test.py in Workbench and verify all checks pass.


Reviewer

Your comments will be used as part of the gatekeeper process. Comment clearly on what you have checked and tested during your review. Provide an audit trail for any changes requested.

As per the review guidelines:

  • Is the code of an acceptable quality? (Code standards/GUI standards)
  • Has a thorough functional test been performed? Do the changes handle unexpected input/situations?
  • Are appropriately scoped unit and/or system tests provided?
  • Do the release notes conform to the guidelines and describe the changes appropriately?
  • Has the relevant (user and developer) documentation been added/updated?
  • If the PR author isn’t in the mantid-developers or mantid-contributors teams, add a review comment rerun ci to authorize/rerun the CI

Gatekeeper

As per the gatekeeping guidelines:

  • Has a thorough first line review been conducted, including functional testing?
  • At a high-level, is the code quality sufficient?
  • Are the base, milestone and labels correct?

@jmborr jmborr self-assigned this Mar 14, 2026
@jmborr jmborr marked this pull request as draft March 14, 2026 23:43
@github-actions github-actions bot added this to the Release 6.16 milestone Mar 14, 2026
@jmborr jmborr requested a review from Copilot March 14, 2026 23:43
@jmborr jmborr added Diffraction Issues and pull requests related to diffraction Framework Issues and pull requests related to components in the Framework labels Mar 14, 2026

This comment was marked as resolved.

@jmborr

This comment was marked as resolved.

@coderabbitai

This comment was marked as resolved.

@coderabbitai

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

jmborr added 3 commits March 17, 2026 12:06
Signed-off-by: Jose Borreguero <borreguero@gmail.com>
Signed-off-by: Jose Borreguero <borreguero@gmail.com>
…ionHelper and improve file handling

Signed-off-by: Jose Borreguero <borreguero@gmail.com>
@jmborr jmborr force-pushed the save_monitor_count branch from b368076 to e520ee5 Compare March 17, 2026 16:07
@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Unit test results

2 861 tests   2 861 ✅  1h 58m 41s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit 16c34cb.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

System test results

808 tests   792 ✅  2h 4m 57s ⏱️
 48 suites   16 💤
 48 files      0 ❌

Results for commit 16c34cb.

♻️ This comment has been updated with latest results.

@jmborr jmborr marked this pull request as ready for review March 17, 2026 18:20
@jmborr jmborr requested a review from zjmorgan March 18, 2026 11:00
@zjmorgan
Copy link
Contributor

Seems to work with save/load nexus

Copy link
Member

@rosswhitfield rosswhitfield left a comment

Choose a reason for hiding this comment

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

LGTM

@KedoKudo KedoKudo merged commit 976b7f8 into main Mar 20, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Diffraction Issues and pull requests related to diffraction Framework Issues and pull requests related to components in the Framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants