Ticket #10072 (closed: fixed)
Add info on distribution status for MatrixWorkspace to workspace information
Reported by: | Martyn Gigg | Owned by: | Federico M Pouzols |
---|---|---|---|
Priority: | major | Milestone: | Release 3.3 |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Dan Nixon |
Description
To query if a workspace has the distribution flag set you currently have to write some Python code. In would seem more natural to put this information in the workspace information (what you see when you drop down a workspace name in MantidPlot) for a MatrixWorkspace. Something like
Distribution: True
should suffice I think.
I have marked this as framework because the information is actually populated from the MatrixWorkspace.toString() method.
Change History
comment:1 Changed 6 years ago by Federico M Pouzols
- Owner set to Federico M Pouzols
- Status changed from new to assigned
comment:2 Changed 6 years ago by Federico Montesino Pouzols
- Status changed from assigned to inprogress
add Distribution: True/False to MatrixWorkspace info, re #10072
Changeset: 06f628446391951abd9f4303b99d0a9080886f8f
comment:3 Changed 6 years ago by Federico Montesino Pouzols
update APITest_MatrixWorkspaceTest - 'Distribution: False, re #10072'
Changeset: 2fe0660f19b779c67315d975904ff4c8b06f3825
comment:4 Changed 6 years ago by Federico M Pouzols
- Status changed from inprogress to verify
- Resolution set to fixed
A new entry/line has been added in the workspace info string, as suggested in the ticket description. 'Distribution: True/False' goes immediately below "Y axis: ..."
To test:
Load different workspaces (with/without) distribution data. Check the info in the workspace tree, and check that the value of distribution matches what you get in the python command line:
mtd["workspace_name"].isDistribution()
Examples of files/workspaces with distribution data:
- In Test/AutoTestData/UsageData/saveNISTDAT_data.nxs
- Generate a workspace with distribution Y data using LoadVesubio (http://docs.mantidproject.org/nightly/algorithms/LoadVesuvio-v1.html):
ws=LoadVesuvio("14188", SpectrumList=135)
(this requires EVS14188.raw which is found in systemtests/Data/)
Also, check that tests pass, especially APITest_MatrixWorkspaceTest.
comment:6 Changed 6 years ago by Dan Nixon
- Status changed from verify to verifying
- Tester set to Dan Nixon
comment:7 Changed 6 years ago by Dan Nixon
- Status changed from verifying to closed
Merge remote-tracking branch 'origin/feature/10072_distribution_status_info_for_matrixworkspace'
Full changeset: e946eedad6c36b559c3a52170f94e8843f0ac5e8