Opened 12 years ago
Closed 11 years ago
#187 closed defect (fixed)
Cannot load SASXML v1.1 data files
Reported by: | smk78 | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | SasView 2.2.1 |
Component: | SasView | Keywords: | |
Cc: | Work Package: |
Description
SasView? will not load CanSAS SASXML v1.1 data files; ie, those with the header:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="cansasxml-html.xsl" ?>
<SASroot version="1.1"
xmlns="urn:cansas1d:1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:cansas1d:1.1 http://www.cansas.org/formats/1.1/cansas1d.xsd">
An immediate problem is this means that SASXML data written from Mantid 2.5.x can no longer be read by SasView?!
Looking at /CorFuncPerspective?/sansdataloader/src/sans/dataloader/readers/cansas_reader.py the reason may be two-fold:
1) the loader appears to check for the presence of the namespace "cansas1d/1.0"
2) the class reader: includes the line version = '1.0'
Change History (1)
comment:1 Changed 11 years ago by butler
- Milestone set to SasView 2.2.1
- Resolution set to fixed
- Status changed from new to closed
Anders modified cansas reader to accept 1.1 as well as 1.0. Jeff fixed the last problem with that code change. Steve King now says it works. PDB