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
EnginXFitPeaks: add new optional property to generate table workspace #810
EnginXFitPeaks: add new optional property to generate table workspace #810
Conversation
Note running algorithm with ENGIN00213855, Workspaceindex=0 and ExpectedPeaks=0.65,1.9 generates the output: EnginXFitPeaks started |
Ah, this is actually an error condition that wasn't being checked. I've added a verbose exception for this. If you do this (or any similar very wrong guess of the expected peaks):
You sould now get an error like this:
I added this as an exception, rather than simply an error message, as the algorithm cannot finish succesfully and cannot produce sensible output values when this happens. |
Now when running ENGIN00213855, Workspaceindex=0 and ExpectedPeaks=0.65,1.9 get the informative output: Error in execution of algorithm EnginXFitPeaks: |
Minor change to for the description of the new algorithm property
…t_table_with_difc_zero EnginXFitPeaks: add new optional property to generate table workspace
Code review good and test added for new algorithm property |
This fixes #11748
To test:
There's a small ugliness in that there's a bit of code duplication with PR #806, as these two are in different tickets. This is commented in the code and can be sorted out, putting common utility methods in EnginXUtils, in follow-up tickets/issues when these two are merged. This can be done for example in #10910 which is in part about refactoring common stuff and moving it into EnginXUtils.