Ticket #7530 (assigned)
Mantid freezing when invalid mask loaded - ISIS SANS.
Reported by: | Jay Rainey | Owned by: | Peter Parker |
---|---|---|---|
Priority: | major | Milestone: | Backlog |
Component: | SANS | Keywords: | |
Cc: | gesner.passos@… | Blocked By: | |
Blocking: | Tester: |
Description
When testing #6594 I came across an issue that occurred if an invalid file was loaded in ISIS SANS load mask. If the file was a binary file (such as .raw) Mantid would freeze up and seize to function.
This can be re-produced as follow:
- Load Mantid
- Go to Interfaces -> SANS ISIS
- Click Load Mask and select a .raw or other binary file.
- The bug/issue should then be visible.
Change History
comment:3 Changed 7 years ago by Nick Draper
- Milestone changed from Release 3.0 to Backlog
Moved out to backlog as not enough time in R3.0
comment:4 Changed 7 years ago by Nick Draper
- Status changed from new to assigned
Bulk move to assigned at the introduction of the triage step
comment:5 Changed 7 years ago by Gesner Passos
The main problem is related to the fact that MaskFile does try to load files that are not specific related to MaskFiles. Try for example this script and you will see.
import ISISInterface as ici ici.LOQ() ici.MaskFile('/apps/mantid/systemtests/Data/LOQ/LOQ74044.nxs')
comment:6 Changed 7 years ago by Jay Rainey
Prior to loading a mask file can we check if the file extension is in an acceptable list of file extensions, and if not throw an error?