Ticket #1454 (closed: fixed)
MantidPlot Indicate to the user with hourglass cursor (for example) when long tasks are running.
Reported by: | Janik Zikovsky | Owned by: | Roman Tolchenov |
---|---|---|---|
Priority: | major | Milestone: | Release 2.0 |
Component: | Mantid | Keywords: | |
Cc: | pf9@… | Blocked By: | |
Blocking: | Tester: | Karl Palmen |
Description
Specifically, Show Data or Plot Spectrum can take a while with a large EventList in an EventWorkspace, while the on-demand rebinning happens. It looks like the program is hanging while the list is being sorted and rebinned.
Change History
comment:1 Changed 10 years ago by Nick Draper
- Owner set to Janik Zikovsky
- Status changed from new to assigned
- Milestone changed from Iteration 24 to Iteration 25
comment:2 Changed 10 years ago by Janik Zikovsky
- Owner changed from Janik Zikovsky to Roman Tolchenov
- Component set to Mantid
Hi Roman, I was asked by Nick to give you the steps to reproduce this problem.
From the MantidPlot gui (fix paths as needed):
###################################################################### #Python Script Generated by Algorithm History Display ###################################################################### LoadEventPreNeXus(EventFilename="/Mantid/Test/Data/sns_event_prenexus/PG3_732_neutron_event.dat",OutputWorkspace="pg3") AlignDetectors(InputWorkspace="pg3",OutputWorkspace="pg3",CalibrationFile="/Mantid/Test/Data/sns_event_prenexus/pg3_mantid_det.cal") DiffractionFocussing(InputWorkspace="pg3",OutputWorkspace="pg3",GroupingFileName="/Mantid/Test/Data/sns_event_prenexus/pg3_mantid_det.cal")
Ok, now the next thing to do is to "Show data" by double-clicking the pg3 workspace. On my system, it takes about 30 seconds for the table to show up. This is because the event lists are being sorted in the background, and this is pretty slow on this large data set. Note that the delay will only happen the first time. Once it is sorted, it stays sorted. You can use the Sort algorithm to sort it another way and then try again.
Sincerely,
Janik Zikovsky
comment:3 Changed 10 years ago by Nick Draper
- Milestone changed from Iteration 26 to Iteration 27
Bulk move of tickets to iteration 27, if your ticket is essential for Iteration 26 then move it back.
comment:4 Changed 10 years ago by Roman Tolchenov
Hi Janik,
I think I don't have file PG3_732_neutron_event.dat. Are you sure it's in the repository?
Roman
comment:5 Changed 10 years ago by Janik Zikovsky
Hi Roman,
The file was removed from SVN because of its large size. However, you can still get it if you look in an older revision:
comment:6 Changed 10 years ago by Nick Draper
- Milestone changed from Iteration 27 to Iteration 28
Bulk move of tickets at the end of iteration 27
comment:7 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 28 to Iteration 29
Bulk move of tickets at the end of iteration 28
comment:8 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 29 to Iteration 30
Accepted and assigned tickets moved at iteration 29 code freeze
comment:9 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 30 to Iteration 31
Bulk move of tickets to iteration 31 at the iteration 30 code freeze
comment:10 Changed 9 years ago by Roman Tolchenov
Showing the hourglass cursor when showing the instrument or plotting spectra or bins. re #1454
Changeset: 0a8be452c83026f1c81b9338a13fa395e14eb734
comment:12 Changed 9 years ago by Roman Tolchenov
- Status changed from accepted to verify
- Resolution set to fixed
comment:13 Changed 9 years ago by Roman Tolchenov
Showing the hourglass cursor when showing the instrument or plotting spectra or bins. re #1454
Changeset: 0a8be452c83026f1c81b9338a13fa395e14eb734
comment:14 Changed 9 years ago by Karl Palmen
- Status changed from verify to verifying
- Tester set to Karl Palmen
comment:15 Changed 9 years ago by Karl Palmen
- Status changed from verifying to closed
Testing on a different large event file, I observed the Windows7 equivalent to the hourglass symbol on plot spectrum, fill plot and show instrument. It also showed up on show date when the dialog box was open (when it shouldn't) and I'll make a ticket for this.
comment:16 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 2301
Janik,
Can you attach the steps to reproduce a reasonble delay as a comment and then reassign this ticket to Roman Tolchenov
Regards, Nick Draper