Skip to content
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

Fix sequential fits in Muon Analysis interface #14807

Merged
merged 1 commit into from Dec 17, 2015

Conversation

tom-perkins
Copy link

Resolves #14800

Sequential fits in the Muon Analysis interface were failing. The sequential fit dialog is passed a MuonProcess algorithm with some properties set, and loads each file and passes it through this algorithm.

If the algorithm passed in has the property "ApplyDeadTimeCorrection" set true, it will expect there to be a dead time table. If this is not the case then the processing fails. This PR checks this property and, if no dead time table is set, loads the dead times from the file.

Other changes:

  • The output workspace type has been corrected.
  • Log error message from exceptions

To test

  • Download the data files from \\olympic\babylon5\Public\TomPerkins (emu00059683-5.nxs) and put them in a directory where Mantid can find them
  • Start MantidPlot and select Interfaces -> Muon -> Muon Analysis
  • Load one of the files
  • Go to the "Data Analysis" tab. Add a fit function (e.g. ExpDecayMuon).
  • Select Fit->Sequential fit.
  • Enter 59683-59685 in the Runs box and start the fit.
  • Verify the fit runs ok with no errors.

- If "ApplyDeadTimeCorrection" is set but there is no dead time table set
on the algorithm passed in, we need to load the dead times from the file.
- The output workspace type has been corrected.
- In the catch, write the exception's error message to the log.
@tom-perkins tom-perkins added Muon Issues and pull requests related to muons Component: GUI labels Dec 16, 2015
@tom-perkins tom-perkins added this to the Release 3.6 milestone Dec 16, 2015
@MattKing06 MattKing06 self-assigned this Dec 16, 2015
@MattKing06
Copy link
Contributor

Once I've loaded the file, I go to the Data Analysis tab to select Sequential fit but it is disbled. Is there something I'm missing?

@tom-perkins
Copy link
Author

Did you add a function to the fit? The 'Fit' and 'Sequential fit' options should both be enabled if the composite function has at least 1 function in it. (Were they both disabled or just the sequential one?)

@MattKing06
Copy link
Contributor

Ahh I see, I've got it working now, thanks 👍

MattKing06 added a commit that referenced this pull request Dec 17, 2015
…nAnalysis

Works well when no Dead Time table is supplied with a good error message telling the user exactly what was wrong. Happy to merge.
@MattKing06 MattKing06 merged commit 551c740 into master Dec 17, 2015
@MattKing06 MattKing06 deleted the 14800_Sequential_Fit_MuonAnalysis branch December 17, 2015 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Muon Issues and pull requests related to muons
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants