Ticket #6026 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

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

test_bad.dat (132 bytes) - added by Gesner Passos 8 years ago.
Small Workspace file

Change History

Changed 8 years ago by Gesner Passos

Small Workspace file

comment:1 Changed 8 years ago by Gesner Passos

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Gesner Passos

  • Priority changed from major to minor

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:6 Changed 8 years ago by Andrei Savici

  • Status changed from verifying to closed

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

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6872

Note: See TracTickets for help on using tickets.