Ticket #7652 (closed: fixed)
Add a new algorithm to refine power diffraction pattern's background
Reported by: | Wenduo Zhou | Owned by: | Wenduo Zhou |
---|---|---|---|
Priority: | major | Milestone: | Release 3.0 |
Component: | Diffraction | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #6867 | Tester: | Roman Tolchenov |
Description (last modified by Wenduo Zhou) (diff)
The new algorithm is designed to remove the peaks, whose parameters have been given (via a TableWorkspace), from a diffraction pattern and do fit to background function as an option.
Attachments
Change History
comment:3 Changed 7 years ago by Wenduo Zhou
Implemented removing peaks. Refs #7652.
Changeset: a69b7cf19bbc15c26d567fd32ae2f6efb237f516
comment:4 Changed 7 years ago by Wenduo Zhou
Cleaned the code. Refs #7652.
Changeset: 5e87073fca2c5bac91ccb975972464507766c011
comment:6 Changed 7 years ago by Wenduo Zhou
Verification
- Download all the attached files from this ticket;
- Run script verify_7652.py;
- Compare spectra 1 in the output workspace ???? and spectra 1 in input workspace ????. You can see the calculated background from the parameters fitted.
comment:7 Changed 7 years ago by Wenduo Zhou
Enhancing UI and background selection. Refs #7652.
- Add visibilities to properties used by specific functions of the
algorithm;
- Add more support to fit Chebyshev background function.
Changeset: 96aea87cc856f34ade60a9733a5be1444e8d5357
comment:8 Changed 7 years ago by Wenduo Zhou
Instruction for verification
- Download attached ???.py (test script), ???.nxs (table workspace) and ???.dat (data)
- Run ???.py
- Plot Workspace A and B together (spectrum 2) to see the selected background. Spectrum 2 of workspace B is the model fit by Chebyshev.
comment:9 Changed 7 years ago by Wenduo Zhou
Added default value to boundaries. Refs #7652.
Changeset: 01a20818c5331e2255745fafac110cc2e6da8a9e
comment:10 Changed 7 years ago by Wenduo Zhou
Added an option to read in a background function. Refs #7652.
Changeset: be57e77cee05e43d1abcbdda5585db65d09e59f9
comment:11 Changed 7 years ago by Wenduo Zhou
Added unit test and cleaned code. Refs #7652.
Changeset: 9e46bcaf7335d3a2f8b3c6478c461f0e1abe08f2
comment:12 Changed 7 years ago by Wenduo Zhou
Verification Instruction
Selecting background points
This is to verify the enhancement on selecting background points
- Download verify7652A.py and 22946.gda;
- Run python script in MantidPlot;
- Plot spectrum 2 (workspace index = 1) of 'V22946_Bkgd02' over 'V22946'. You can see how the model of the background matches the experiment data. Spectrum 2 of 'V22946_Bkgd01' is a medium result, while spectrum 1 of 'FilterRef01' is the fit directly on user-specified background points.
Removing background by Le Bail fit result
This is to verify the new option 'RemovePeaks' in this algorithm.
- Download verify7652B.py and the other 2 .nxs file;
- Run script verify7652B.py in MantidPlot;
- Plot spectrum 2 of PG3_11485_FitBkgd_Workspace (result) over spectrum 1 of PG3_11485 (original data) to check how the background model fits the experiment data.
comment:13 Changed 7 years ago by Wenduo Zhou
Fixed some properties issue. Refs #7652.
Changeset: 7d11ed22bc6fb2e3aecf4c789d4b2bf756863b31
comment:14 Changed 7 years ago by Wenduo Zhou
- Status changed from inprogress to verify
- Resolution set to fixed
comment:15 Changed 7 years ago by Roman Tolchenov
- Status changed from verify to verifying
- Tester set to Roman Tolchenov
comment:16 Changed 7 years ago by Roman Tolchenov
- Status changed from verifying to reopened
- Resolution fixed deleted
Script verify7652A.py failed with message:
RuntimeError: N/A is not supported. at line 18 in '/home/hqs74821/work/mantid_stuff/test/7652/verify7652A.py' caused by line 547 in '/home/hqs74821/work/mantid/build/bin/mantid/simpleapi.py'
comment:17 Changed 7 years ago by Wenduo Zhou
- Status changed from reopened to verify
- Resolution set to fixed
There was a bug in verify7652A.py. It has been fixed.
comment:19 Changed 7 years ago by Roman Tolchenov
- Status changed from verifying to closed
Merge remote-tracking branch 'origin/feature/7652_process_bkgd'
Full changeset: c09833769a4ff7ea18df0c2ecd899cbc89d9597f
comment:21 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 8497