Make instrument optional in LoadDiffCal#41070
Make instrument optional in LoadDiffCal#41070SilkeSchomann merged 8 commits intomantidproject:mainfrom
Conversation
f809f1d to
641e30e
Compare
rboston628
left a comment
There was a problem hiding this comment.
I think inlining the new constructors is a good idea.
Are we sure there's no risk of nullptr dereference?
|
The |
641e30e to
40d1f99
Compare
|
Was able to build and run. I ran the following script file = "/SNS/SNAP/shared/Calibration/Powder/04bd2c53f6bf6754/lite/diffraction/v_0001/diffract_consts_046680_v0001.h5"
LoadDiffCal(Filename = file, WorkspaceName = "lite")
file = "/SNS/SNAP/shared/Calibration/Powder/04bd2c53f6bf6754/native/diffraction/v_0/diffract_consts_default_v0.h5"
LoadDiffCal(Filename = file, WorkspaceName = "difc")
LoadDiffCal(file)The first uses a In the In the At the end, the expected workspaces are created. For the case where In all three cases, the matrix workspaces have "Show Instrument" disabled. Selecting to "Show Data" shows the table data. For the calibration tables, double clicking will show the table data as well. However, double-clicking on any of the matrix workspaces causes a segmentation fault: |
9ddce03 to
4ea349f
Compare
rboston628
left a comment
There was a problem hiding this comment.
Re-ran the above script. Everything still worked. Double-clicking the workspaces brought up a plot without segfaulting.
VULCAN added more detector banks and we are unable to process any of their data, including the previously existing banks, until a new IDF is created. This get past the issue in terms of loading the calibration file.
There is no associated issue, but this is related to EWM15052.
To test:
Pick your favorite diff-cal file and load it. The "data" can be viewed and the right-click menu item for showing the instrument is disabled.
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:
mantid-developersormantid-contributorsteams, add a review commentrerun cito authorize/rerun the CIGatekeeper
As per the gatekeeping guidelines: