Ignore:
Timestamp:
Aug 9, 2016 9:36:23 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:
785fa53
Parents:
0e11ec7
Message:

Fix error when loading in converted CanSAS files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/file_converter/converter_panel.py

    r0e11ec7 r94667e27  
    6969 
    7070        # Metadata values 
    71         self.title = None 
    72         self.run = None 
    73         self.run_name = None 
    74         self.instrument = None 
     71        self.title = '' 
     72        self.run = '' 
     73        self.run_name = '' 
     74        self.instrument = '' 
    7575        self.detector = Detector() 
    7676        self.sample = Sample() 
     
    9999        writer = CansasWriter() 
    100100        entry_attrs = None 
    101         if self.run_name is not None: 
     101        if self.run_name != '': 
    102102            entry_attrs = { 'name': self.run_name } 
    103103 
     
    504504        value = textbox.GetValue().strip() 
    505505 
    506         if value == '': value = None 
    507  
    508506        setattr(self, attr, value) 
    509507 
Note: See TracChangeset for help on using the changeset viewer.