Changeset e25d908 in sasview for sansguiframe/src


Ignore:
Timestamp:
Jan 19, 2012 6:29:00 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
aac129aa
Parents:
ca58654
Message:

Batch Grid: fixed a bug when a file opened and read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/data_processor.py

    r98fdccd re25d908  
    669669        if outputs == None: 
    670670            return 
    671         to_be_sort = [str(item.label) for item in outputs['Data']] 
     671        try: 
     672            # For outputs from batch 
     673            to_be_sort = [str(item.label) for item in outputs['Data']] 
     674        except: 
     675            # When inputs are from an external file 
     676            return inputs, outputs 
    672677        inds = numpy.lexsort((to_be_sort, to_be_sort)) 
    673678        for key in outputs.keys(): 
Note: See TracChangeset for help on using the changeset viewer.