Ticket #6691 (closed: fixed)
MUON: save user specified deadtime table filename
Reported by: | Anders Markvardsen | Owned by: | Arturs Bekasovs |
---|---|---|---|
Priority: | critical | Milestone: | Release 3.0 |
Component: | Muon | Keywords: | |
Cc: | stephen.cottrell@… | Blocked By: | #7955 |
Blocking: | Tester: | Karl Palmen |
Attachments
Change History
comment:1 Changed 8 years ago by Anders Markvardsen
- Status changed from new to accepted
- Priority changed from blocker to major
- type changed from defect to enhancement
- Description modified (diff)
- Summary changed from Muon: plotting is not restored to MUON: save user specified deadtime table filename
comment:6 Changed 7 years ago by Nick Draper
- Milestone changed from Release 2.6 to Backlog
Moved to the Backlog after R2.6
comment:7 Changed 7 years ago by Anders Markvardsen
- Owner changed from Anders Markvardsen to Arturs Bekasovs
- Description modified (diff)
- Milestone changed from Backlog to Release 3.0
comment:9 Changed 7 years ago by Arturs Bekasovs
- Blocked By 7955 added
While investigating this one, found that the whole Dead Time file thing is not working properly. Ticket for that: #7955.
While it's theoretically possible to implement this one, it would be difficult to verify it before the logic is fixed, so doing that first.
comment:10 Changed 7 years ago by Arturs Bekasovs
- Blocked By 7955 removed
(In #7955) It seems that the last file found is used instead of the current one loaded.
comment:11 Changed 7 years ago by Arturs Bekasovs
- Blocked By 7955 added
Trac issues. Returning blocked by ticket.
comment:13 Changed 7 years ago by Arturs Bekasovs
Save/load code for the Dead Time filename.
Refs #6691
Changeset: e747eac4431322aa56de8ff41e33903c87220f8b
comment:14 Changed 7 years ago by Arturs Bekasovs
Don't reset file to empty when selecting "Dead Time from disk".
Improves the UX in the way that if we have not changed the filename, it will always contain what's saved i.e. previously applied.
Refs #6691
Changeset: 1d8583fb20f689f1b090fe3572d959b091d985a0
comment:15 Changed 7 years ago by Arturs Bekasovs
Removed.
comment:16 Changed 7 years ago by Arturs Bekasovs
Return the old behavior of clearing input.
Not clearing turned out to introduce more problems. The old behaviour is fixed as well, as before it was just setting the text without updating the file cache.
Refs #6691
Changeset: eb9578213ef5bf973a1b9eda31d70f7590135f19
comment:17 Changed 7 years ago by Arturs Bekasovs
Save the file even if it doesn't apply to the current data set.
Refs #6691
Changeset: 510fc73a75621b7c2d2f34ab6cda2971e9fcfb43
comment:18 Changed 7 years ago by Arturs Bekasovs
Tester:
Use attached EMU00036854.nxs (data) and dtepar.nxs (Dead Time table). Check that the specified name of Dead Time Table file is saved when the interface is closed and opened again.
Make sure that if the filename is restored it is actually used when data is loaded. One way to do that is to check the history of MuonAnalysis workspace and make sure ApplyDeadTimeCorr was used preceded by LoadNexusProcessed of the appropriate Dead Time file.
Please also check the following scenario:
- Plot EMU00036854.nxs with Dead Time correction applied from dtepar.nxs.
- Set correction to "None", plot again.
- Set correction to "From Disk". Try to plot. Should throw an error, as no file is specified.
Changed 7 years ago by Arturs Bekasovs
- Attachment dtepar.nxs added
Dead Time Table file for testing
comment:19 Changed 7 years ago by Arturs Bekasovs
- Status changed from inprogress to verify
- Resolution set to fixed
comment:20 Changed 7 years ago by Karl Palmen
- Status changed from verify to verifying
- Tester set to Karl Palmen
comment:21 Changed 7 years ago by Karl Palmen
- Status changed from verifying to reopened
- Resolution fixed deleted
All details of test went OK, but I could not shut down Mantidplot afterwards and needed to use task manager to terminate Mantidplot. The deadfile name survives this. Mantidplot closes OK if I open it and do something other than the test.
comment:22 Changed 7 years ago by Arturs Bekasovs
Is not reproducible on my Linux machine, so presumably is a Windows problem.
comment:23 Changed 7 years ago by Arturs Bekasovs
- Status changed from reopened to inprogress
Close all MDI windows explicitly when exiting.
Do it at the point when MantidPlot is still alive to avoid segfaults.
Refs #6691
Changeset: ccb5ffeadc6336161643c1867182f0b58596468b
comment:24 Changed 7 years ago by Arturs Bekasovs
There was a segfault thrown when we close MantidPlot with MuonAnalysis open, so presumably it was the cause of problems.
comment:25 Changed 7 years ago by Arturs Bekasovs
- Status changed from inprogress to verify
- Resolution set to fixed
comment:27 Changed 7 years ago by Karl Palmen
- Status changed from verifying to reopened
- Resolution fixed deleted
It still does not shut down on Windows. Are all changes pushed?
comment:28 Changed 7 years ago by Arturs Bekasovs
That's right. Forgot to git finish. Will do when I get back on Wednesday. Sorry.
comment:29 Changed 7 years ago by Arturs Bekasovs
- Status changed from reopened to verify
- Resolution set to fixed
Should be fine now. Peter confirmed that my changes solved the problem on the Develop, so it was just a matter of pushing this branch.
comment:32 Changed 7 years ago by Karl Palmen
Merge remote-tracking branch 'origin/feature/6691_muon_save_deadtime_file'
Full changeset: 988413ffe6d9caf388506e61a7da5ca0453f3e6d
comment:33 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 7537