Changeset 3a9801f in sasview for src/sas/sascalc/dataloader/readers


Ignore:
Timestamp:
Jul 19, 2016 6:48:47 AM (8 years ago)
Author:
lewis
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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
4b862c4
Parents:
9318c4e
Message:

Write detector object in correct order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/readers/cansas_reader.py

    rfdbea3c r3a9801f  
    166166        # ns - Namespace hierarchy for current xml_file object 
    167167        ns_list = [] 
    168          
     168 
    169169        # Check that the file exists 
    170170        if os.path.isfile(xml_file): 
     
    942942            written = written | self.write_node(pix, "z", item.pixel_size.z, 
    943943                                                {"unit": item.pixel_size_unit}) 
    944             written = written | self.write_node(det, "slit_length", 
    945                                                 item.slit_length, 
    946                                                 {"unit": item.slit_length_unit}) 
    947944            if written == True: 
    948945                self.append(pix, det) 
     946            self.write_node(det, "slit_length", item.slit_length, 
     947                {"unit": item.slit_length_unit}) 
     948 
    949949 
    950950    def _write_process_notes(self, datainfo, entry_node): 
Note: See TracChangeset for help on using the changeset viewer.