Skip to content

cannot read canSAS1D file written out by SasView (Trac #938) #1018

@butlerpd

Description

@butlerpd

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]

Migrated from http://trac.sasview.org/ticket/938

{
    "status": "closed",
    "changetime": "2017-05-30T03:30:49",
    "_ts": "2017-05-30 03:30:49.211847+00:00",
    "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.\n{{{\nThe following errors occured whilst loading 044753_t1_out.xml:\n\tError: CanSAS reader: unexpected \"Idev\" unit [\\rm{Intensity} | cm^{-1}]; expecting [1/cm]\n\tError: CanSAS reader: unexpected \"Q\" unit [\\rm{Q} | A^{-1}]; expecting [1/A]\n\tError: CanSAS reader: unexpected \"Qdev\" unit [\\rm{Q} | A^{-1}]; expecting [1/A]\n\tError: CanSAS reader: unexpected \"I\" unit [\\rm{Intensity} | cm^{-1}]; expecting [1/cm]\n\n}}}",
    "reporter": "butler",
    "cc": "",
    "resolution": "fixed",
    "workpackage": "SasView Bug Fixing",
    "time": "2017-04-08T15:19:33",
    "component": "SasView",
    "summary": "cannot read canSAS1D file written out by SasView",
    "priority": "blocker",
    "keywords": "",
    "milestone": "SasView 4.1.1",
    "owner": "krzywon",
    "type": "defect"
}

Metadata

Metadata

Assignees

Labels

BlockerPrevents a different issue from being resolvedDefectBug or undesirable behaviour

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions