Ticket #3079 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

LoadAscii won't load file created with SaveAscii

Reported by: Russell Taylor Owned by: Robert Whitley
Priority: major Milestone: Iteration 30
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Mathieu Doucet

Description (last modified by Russell Taylor) (diff)

The attached file, which was created using SaveAscii, cannot be loaded with either the generic Load algorithm (which cannot work out which algorithm to use) or the specific LoadAscii algorithm.

LoadAscii gives this output:

Invalid value on line 76 of "/home/tr9/mpi/mantidtest/test.txt" Error in execution of algorithm LoadAscii: Invalid value encountered.

The line referred to (well actually line 77) contains nan's. Delete those and it works - but it should be able to cope anyway!

Also, SaveAscii uses "Workspace" as the property name, when all the other Save algorithms use "InputWorkspace".

Finally, the dialog box for LoadAscii for some reason has the title "Load Workspace from DAE" and doesn't display the yellow box containing the 'optional message'.

Attachments

test.txt (507.6 KB) - added by Russell Taylor 9 years ago.
saveasciiTest.txt (511.8 KB) - added by Nick Draper 9 years ago.
Fails on 1.QNan on line 76

Change History

Changed 9 years ago by Russell Taylor

comment:1 Changed 9 years ago by Russell Taylor

  • Description modified (diff)

comment:2 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 29 to Iteration 30

"New" tickets moved at the code freeze of iteration 29

comment:3 Changed 9 years ago by Nick Draper

  • Status changed from new to assigned
  • Owner set to Robert Whitley

comment:4 Changed 9 years ago by Russell Taylor

  • Description modified (diff)

comment:5 Changed 9 years ago by Robert Whitley

In [13726]:

Refs #3079 Dialog box for LoadAscii now has optional message. SaveAscii now uses InputWorkspace. The LoadAscii can now run a file containing NaN's without having to delete them. LoadAscii has been changed slightly so that it runs with a rank of 10. Finally the quickFileCheck now works, before the fix it was always true unless the file didn't have a file extension.

comment:6 Changed 9 years ago by Robert Whitley

  • Status changed from assigned to accepted

comment:7 Changed 9 years ago by Robert Whitley

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:8 Changed 9 years ago by Mathieu Doucet

In [13776]:

Fix code broken by LoadAscii changes. Re #3079

comment:9 Changed 9 years ago by Nick Draper

  • Status changed from verify to verifying
  • Tester set to Nick Draper

Changed 9 years ago by Nick Draper

Fails on 1.QNan on line 76

comment:10 Changed 9 years ago by Nick Draper

  • Status changed from verifying to reopened
  • Resolution fixed deleted

original file loads,

but then tested with saving the original workspace with save ascii and reloading the result. Fails on line 76 where there are some 1.QNAN entries.

File saveasciitest.txt attached.

version 1.30.14747

comment:11 Changed 9 years ago by Robert Whitley

In [14757]:

Refs #3079. Fixed the LoadAscii to read in the quiet_NaN's "1.#QNaN" that are saved by SaveAscii when dealing with NaN's.

comment:12 Changed 9 years ago by Robert Whitley

  • Status changed from reopened to accepted

comment:13 Changed 9 years ago by Robert Whitley

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:14 Changed 9 years ago by Mathieu Doucet

  • Status changed from verify to verifying
  • Tester changed from Nick Draper to Mathieu Doucet

comment:15 Changed 9 years ago by Mathieu Doucet

  • Status changed from verifying to closed

comment:16 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3926

Note: See TracTickets for help on using tickets.