Ignore:
Timestamp:
Jan 14, 2014 3:53:36 PM (11 years ago)
Author:
Jeff Krzywon <jeffery.krzywon@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
16bd5ca
Parents:
083e993
Message:

Fix for the datainfo window not loading and bug fixes for the cansas data reader.

Fixes/changes:
(1) datainfo window is now loading for every data file I can test
(2) transmission spectrum information (but not data) is listed in datainfo window
(3) more than one transmission spectra can be loaded for each Data1D object
(4) fixed a bug in the cansas reader that allowed any file to be loaded as data if and only if another data file was already loaded
(5) fixed the cansas writer to include transmission spectrum data and output data in strict canSAS format
(6) increased the pylint score of cansas_constants.py to above 7
(7) increased the pylint score for all files I have modified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/dataloader/readers/xml_reader.py

    r17a25d4 r76cd1ae  
    1717 
    1818class XMLreader(): 
     19     
     20    xml = None 
     21    xmldoc = None 
     22    xmlroot = None 
     23    schema = None 
     24    schemadoc = None 
    1925     
    2026    def __init__(self, xml = None, schema = None, root = None): 
     
    4753            self.xmlroot = self.xmldoc.getroot() 
    4854        except Exception: 
    49             ##!TODO: raise exception if no xml is passed to this function 
    50             print "No xml file was found!" 
     55            self.xml = None 
     56            self.xmldoc = None 
     57            self.xmlroot = None 
    5158     
    5259    def setSchema(self, schema): 
     
    5562            self.schemadoc = etree.parse(self.schema, parser = parser) 
    5663        except Exception: 
    57             ##!TODO: raise exception if no schema is passed to this function 
    58             print "No schema file was found!" 
     64            self.schema = None 
     65            self.schemadoc = None 
    5966     
    6067    def validateXML(self): 
Note: See TracChangeset for help on using the changeset viewer.