Ticket #6026 (closed: fixed)
LoadAscii fails to load small workspaces
Reported by: | Gesner Passos | Owned by: | Gesner Passos |
---|---|---|---|
Priority: | minor | Milestone: | Release 2.3 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Andrei Savici |
Description
If the Ascii file has less than 5 lines, and you do not load with the property SkipNumLines=0, the LoadAscii will fail with the following warning message:
Invalid data format found in file "test_bad.dat" Error in execution of algorithm LoadAscii: Invalid data format. Fewer than 2 columns found.
Attachments
Change History
Changed 8 years ago by Gesner Passos
- Attachment test_bad.dat added
comment:3 Changed 8 years ago by Gesner Passos
LoadAscii may load small workspaces
Change processHeader function in order to check if the end of the file has been reached. Which caused the error for small files.
re #6026
Changeset: 4a992561a651b638d877c26cea103aa6f2e45126
comment:4 Changed 8 years ago by Gesner Passos
- Status changed from accepted to verify
- Resolution set to fixed
comment:5 Changed 8 years ago by Andrei Savici
- Status changed from verify to verifying
- Tester set to Andrei Savici
comment:7 Changed 8 years ago by Gesner Passos
LoadAscii may load small workspaces
Change processHeader function in order to check if the end of the file has been reached. Which caused the error for small files.
re #6026
Changeset: 4a992561a651b638d877c26cea103aa6f2e45126
Small Workspace file