Skip to content
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

Fix for empty mdhisto lines #987

Merged
merged 9 commits into from
Jun 12, 2024
Merged

Conversation

SilkeSchomann
Copy link
Collaborator

Description of work:
When the intensity of a cut is changed to GDOS, a two-dimensional MDHisto workspace is created. When converting this to a matrix workspace, the bin size needs to be calculated on base of the second dimension, not the first. I have also added an error message in case a one-dimensional workspace or the second dimension does not have the correct size. This check is now also covered by a unit test.

To test:

Follow the instructions in the original issue: #986
In addition, please also check that the following problem does not re-occur: #972

Fixes #986.

Copy link

@adriazalvarez adriazalvarez left a comment

Choose a reason for hiding this comment

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

Did a functional test following the test instructions.
Mantid doesn't crash, and there's no extra blank line on the mdhisto cuts.
I would be happy to approve, just want to ask if it needs release note?

Additionally: if you delete all or any line on MDhisto cuts, and the plot window of those lines is still open, it can lead to a crash when trying to modify the intensity again. It is not what this pr is trying to solve, but it would be nice to make part of a separate issue.

@SilkeSchomann
Copy link
Collaborator Author

@adriazalvarez The release notes for MSlice are added when the SHA for MSlice is updated in Mantid. The release note infrastructure in Mantid cannot pick up release notes from the MSlice repo easily.

I have opened a GitHub issue for the problem after deleting a workspace: #988

@adriazalvarez
Copy link

Ah, I see. 😅 Thanks for letting me know.

@SilkeSchomann SilkeSchomann merged commit cf985c6 into main Jun 12, 2024
2 checks passed
@SilkeSchomann SilkeSchomann deleted the 986_fix_for_empty_mdhisto_lines branch June 12, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Status: Done
Development

Successfully merging this pull request may close these issues.

Empty lines in MD Histo tab
2 participants