Opened 8 years ago

Closed 8 years ago

#938 closed defect (fixed)

cannot read canSAS1D file written out by SasView

Reported by: butler Owned by: krzywon
Priority: blocker Milestone: SasView 4.1.1
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

Load data. Right click on data and choose save as and choose cansas1D xml instead of txt then save. Now choose "load" and try to load that same file. Instead of loading 4 unit errors are thrown. It seems because in order to plot nicely the axis labels are wrapped in latex formatting and so written out that way as well.

The following errors occured whilst loading 044753_t1_out.xml:
	Error: CanSAS reader: unexpected "Idev" unit [\rm{Intensity} | cm^{-1}]; expecting [1/cm]
	Error: CanSAS reader: unexpected "Q" unit [\rm{Q} | A^{-1}]; expecting [1/A]
	Error: CanSAS reader: unexpected "Qdev" unit [\rm{Q} | A^{-1}]; expecting [1/A]
	Error: CanSAS reader: unexpected "I" unit [\rm{Intensity} | cm^{-1}]; expecting [1/cm]

Change History (3)

comment:1 Changed 8 years ago by butler

  • Milestone changed from SasView 4.2.0 to Milestone 4.1.1

comment:2 Changed 8 years ago by krzywon

In 527a1907e8dcf230cf6e6cdc74ed054c69493d0a/sasview:

Loading XML files saved through no longer throwing errors. see #938

comment:3 Changed 8 years ago by butler

  • Resolution set to fixed
  • Status changed from new to closed

testing instalable of release candidate 4.1.1 from official Jenkins server indicates this is indeed fixed. Interestingly xml data plots have ugly ascii labels by default while text files have latex formatted labels. All data should plot the same. This may be because of the suggestion above that the label formatting is done by the loader rather than the plotter? That would be wrong.

At any rate this error is fixed and am closing the ticket in preparation for a final release.

Note: See TracTickets for help on using tickets.