-
Notifications
You must be signed in to change notification settings - Fork 122
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
Indirect QuickRun - add diffusion option #18845
Conversation
@louisemccann Question: One option would be to just point the deprecated |
diff_red_alg.setProperty('GroupingPolicy', self._grouping_method) | ||
diff_red_alg.setProperty('OutputWorkspace', self._diff_workspace) | ||
diff_red_alg.execute() | ||
self.setProperty("DiffractionWorkspace", diff_red_alg.getProperty("OutputWorkspace").value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the stuff under the if statement could be refactored into a method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact I'd go for one method per algorithm i.e. something like self.run_diffraction_reduction()
, self.run_msg()
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See suggested changes above, or come talk to me if you disagree.
We need EnergyWindowScan for use by the Interface in #18216 |
@SpencerHowells I agree the algorithm needs to exist. My problem is with renaming. Renaming would potentially break any user scripts that we have no control over that use the current name. Hence we should really deprecate the name |
It has been decided that EnergyWindowScan and the DiffractionScan should be 2 different algs so I am going to close this. |
EnergyWindowScan has been extended to include diffraction reduction and renamed to IndirectReductionAndAnalysis to better represent what the algorithm does.
To test:
InputFiles: Diff_inputs.zip
1
Interfaces>Indirect>Diffraction
Input:
26181
(this should find the appropriate run in the data archive otherwise browse to
IRS26181
in files provided)Ensure Instrument =
ISIS
and mode =diffspec
Press
Run
2
Ensure irs26176_diffspec_red is the same for both methods
Fixes #18223 #12270
Release Notes
Reviewer
Please comment on the following (full description):
Code Review
Functional Tests
Do changes function as described? Add comments below that describe the tests performed?
How do the changes handle unexpected situations, e.g. bad input?
Has the relevant documentation been added/updated?
Is user-facing documentation written in a user-friendly manner?
Has developer documentation been updated if required?
Does everything look good? Comment with the ship it emoji but don't merge. A member of
@mantidproject/gatekeepers
will take care of it.